Here you can find the source of getMonthOfYear(int m)
public static String getMonthOfYear(int m)
//package com.java2s; //License from project: Open Source License public class Main { public static String getMonthOfYear(int m) { if (m == 0) { return "Jan"; } else if (m == 1) { return "Feb"; } else if (m == 2) { return "Mar"; } else if (m == 3) { return "Apr"; } else if (m == 4) { return "May"; } else if (m == 5) { return "Jun"; } else if (m == 6) { return "Jul"; } else if (m == 7) { return "Aug"; } else if (m == 8) { return "Sep"; } else if (m == 9) { return "Oct"; } else if (m == 10) { return "Nov"; } else if (m == 11) { return "Dec"; } else {/*from w w w. j a v a 2 s . co m*/ return "asdf"; } } }