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
If you for any reason use pre 1.5 Java then may try with Apache Commons Lang method
org.apache.commons.lang.StringUtils.leftPad(String str, int size, '0')