How do you left pad an int with zeros in java when converting to a string?
I'm basically looking to pad out integers up to 9999 with the leading zeros.
E.g. 1 = "0001"
I know this is probably simple and as a parallel task I'm googling it, but SO is super quick when it comes to inane questions I should know the answer to...