Here you can find the source of getMonthName(String substring)
private static String getMonthName(String substring)
//package com.java2s; public class Main { private static String getMonthName(String substring) { switch (Integer.parseInt(substring)) { case 1://from w ww . j a v a 2 s .c om return "Jan"; case 2: return "Feb"; case 3: return "Mar"; case 4: return "Apr"; case 5: return "Mei"; case 6: return "Jun"; case 7: return "Jul"; case 8: return "Agust"; case 9: return "Sept"; case 10: return "Okt"; case 11: return "Nov"; case 12: return "Des"; default: break; } return null; } }