Here you can find the source of getMonthNumberString(int month)
public static String getMonthNumberString(int month)
//package com.java2s; public class Main { public static String getMonthNumberString(int month) { if (month >= 1 && month <= 9) return "0" + month; else/*from w ww .java 2s . com*/ return month + ""; } }