How do you left pad an int with zeros when converting to a String in java?
int
String
I\'m basically looking to pad out integers up to 9999
9999
int x = 1; System.out.format("%05d",x);
if you want to print the formatted text directly onto the screen.