Here you can find the source of getMonths()
public static String[] getMonths()
//package com.java2s; public class Main { public static String[] getMonths() { String months[] = { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" }; return months; }//from ww w. ja va 2 s .com }