Here you can find the source of formatNumber(final StringBuilder buf, final long number)
private static void formatNumber(final StringBuilder buf, final long number)
//package com.java2s; // ProjectForge is dual-licensed. public class Main { private static void formatNumber(final StringBuilder buf, final long number) { if (number < 10) { buf.append("0"); }//from ww w .j ava 2 s . co m buf.append(number); } }