Here you can find the source of addLeadingZero(final int value)
private static String addLeadingZero(final int value)
//package com.java2s; //License from project: Open Source License public class Main { private static String addLeadingZero(final int value) { if (value < 10) { return "0" + value; //$NON-NLS-1$ } else {// w w w .java 2 s . c om return String.valueOf(value); } } }