Java Long Number Pad Zero zeropad2(long v, StringBuffer buf)

Here you can find the source of zeropad2(long v, StringBuffer buf)

Description

zeropad

License

Open Source License

Declaration

protected static void zeropad2(long v, StringBuffer buf) 

Method Source Code

//package com.java2s;

public class Main {
    protected static void zeropad2(long v, StringBuffer buf) {
        if (v < 10)
            buf.append('0');
        buf.append(v);/*w  ww .  j a v a 2 s  .  co  m*/
    }
}

Related

  1. zeroPaddingNumber(long value, int digits)