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