List of utility methods to do Long Number Pad Zero
void | zeropad2(long v, StringBuffer buf) zeropad if (v < 10) buf.append('0'); buf.append(v); |
String | zeroPaddingNumber(long value, int digits) zero Padding Number String s = Long.toString(value); int n = digits - s.length(); for (int i = 0; i < n; i++) { s = "0" + s; return s; |