9/07/2010

Java - How you can fill With with zeros to the left ...

public String fillZero(String field, int size){
String res = field;
while(res.length() < size)
res="0"+res;
return res;
}