Here you can find the source of getMonthName(Calendar cal)
public static String getMonthName(Calendar cal)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; public class Main { static String[] monthName = { "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC" }; public static String getMonthName(Calendar cal) { String month = monthName[cal.get(Calendar.MONTH)]; return month; }//from w ww . java 2 s . com }