Here you can find the source of addZeroPrefix(int value)
public static String addZeroPrefix(int value)
//package com.java2s; public class Main { public static String addZeroPrefix(int value) { if (value <= 9) { return "0" + value; } else {/*from ww w . j ava 2 s. c o m*/ return "" + value; } } }