Here you can find the source of getLastDayOfMonth(String monthInitials)
public static String getLastDayOfMonth(String monthInitials)
//package com.java2s; public class Main { public static String getLastDayOfMonth(String monthInitials) { if (monthInitials.equals("Jan")) return "31"; else if (monthInitials.equals("Feb")) return "30"; else if (monthInitials.equals("Mar")) return "31"; else if (monthInitials.equals("Apr")) return "30"; else if (monthInitials.equals("May")) return "31"; else if (monthInitials.equals("Jun")) return "30"; else if (monthInitials.equals("Jul")) return "31"; else if (monthInitials.equals("Aug")) return "31"; else if (monthInitials.equals("Sep")) return "30"; else if (monthInitials.equals("Oct")) return "31"; else if (monthInitials.equals("Nov")) return "30"; else if (monthInitials.equals("Dec")) return "31"; else/*from w ww. jav a 2 s. c om*/ return null; } }