Here you can find the source of getMonthStr(int month)
public static String getMonthStr(int month)
//package com.java2s; //License from project: Open Source License public class Main { public static String getMonthStr(int month) { String[] monthName = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", }; if (month < 0 | month >= 12) { return ""; } else {//from w ww . j a v a2 s .c o m return monthName[month]; } } }