Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; public class Main { public static String getMonthName(int month) { Calendar cal = Calendar.getInstance(); SimpleDateFormat month_date = new SimpleDateFormat("MMM"); cal.set(Calendar.MONTH, month - 1); String month_name = month_date.format(cal.getTime()); return month_name; } }