Here you can find the source of zeropad2(long v, StringBuffer buf)
protected static void zeropad2(long v, StringBuffer buf)
//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*/ } }