Here you can find the source of getMonths()
public static String[] getMonths()
//package com.java2s; import java.text.DateFormatSymbols; public class Main { /**/* w ww. ja v a 2 s . c o m*/ * Returns all months in a string array. * Indexes start from 0. i.e. 0 -> January * @return months */ public static String[] getMonths() { return new DateFormatSymbols().getMonths(); } }