Java Utililty Methods Long Number Pad Zero

List of utility methods to do Long Number Pad Zero

Description

The list of methods to do Long Number Pad Zero are organized into topic(s).

Method

voidzeropad2(long v, StringBuffer buf)
zeropad
if (v < 10)
    buf.append('0');
buf.append(v);
StringzeroPaddingNumber(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;