Here you can find the source of formatMonth(int month)
public static String formatMonth(int month)
//package com.java2s; public class Main { private static final String[] MONTH_FORMAT = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }; public static String formatMonth(int month) { return MONTH_FORMAT[month]; }//from w w w. ja va 2s . co m }