Here you can find the source of getShortMonths()
public static String[] getShortMonths()
//package com.java2s; import static java.util.Calendar.*; import java.text.DateFormatSymbols; import java.util.Locale; public class Main { public static String[] getShortMonths() { return getMonthNames(Locale.getDefault(), SHORT); }//from w w w. j av a 2s .c om public static String[] getMonthNames(Locale l, int len) { String[] s; if (len == SHORT) s = new DateFormatSymbols(l).getShortMonths(); else s = new DateFormatSymbols(l).getMonths(); return s; } public static String[] getMonthNames() { return getMonthNames(Locale.getDefault(), LONG); } }