Java Month lookupMonthStr(int month)

Here you can find the source of lookupMonthStr(int month)

Description

lookup Month Str

License

Open Source License

Declaration

public static String lookupMonthStr(int month) 

Method Source Code

//package com.java2s;

public class Main {
    public static final String[] MONTHS_STR = new String[] { "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG",
            "SEP", "OCT", "NOV", "DEC" };

    public static String lookupMonthStr(int month) {
        return (month < 0 || month > MONTHS_STR.length) ? null : MONTHS_STR[month];
    }/*from   w  w  w.j  a va 2s.co m*/
}

Related

  1. isValidMonth(int month)
  2. isValidObjectModelMonth(int aMonth)
  3. isWeekOfMonth(int num)
  4. leapMonth(int y)
  5. lineStartsWithMonthString(String line)
  6. maxLengthOfMonth(int month)
  7. MONTH(int mh)
  8. month2int(String month)
  9. month2second(int month)