Here you can find the source of IntegerTo(Integer i)
public static String IntegerTo(Integer i)
//package com.java2s; //License from project: Apache License public class Main { public static String IntegerTo(Integer i) { String str = ""; if (i.intValue() < 10) { str = "0" + i; } else {/*from w w w . j a v a 2 s. co m*/ str = String.valueOf(i); } return str; } }