Here you can find the source of getMonthName(String month)
public static String getMonthName(String month)
//package com.java2s; //License from project: Apache License public class Main { static String[] str = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; public static String getMonthName(String month) { int n = Integer.parseInt(month); if (n > 12 || n < 1) { throw new RuntimeException("Month num exceed range [1~12] : " + month); }/*from w ww . java 2s. co m*/ return str[n]; } }