Posted by: rsrawat
on Jan 12, 2010
Recently I tried a simple java program for left and right pad a Number with zeros.
I have gone through java.util.Formatter class but Unfortunately even after 6 major releases also Java String class doesn't have functions for these basic operations like StringUtils class of Apache Commons Lang provides.