Here you can find the source of getAlphaMonth(String mon)
private static int getAlphaMonth(String mon)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { private static final Map<String, Integer> MONTHS = new HashMap<String, Integer>(); private static int getAlphaMonth(String mon) { mon = mon.toLowerCase();//from w w w.j a va 2s . c o m if (MONTHS.get(mon) != null) { return MONTHS.get(mon); } return 0; } }