Java Month Name Get getMonthName(int monthNumber)

Here you can find the source of getMonthName(int monthNumber)

Description

get Month Name

License

Apache License

Declaration

public static String getMonthName(int monthNumber) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /**// w w  w  . j  ava2 s. com
     * The names of the months
     */
    private static final String[] months = { "January", "February", "March", "April", "May", "June", "July",
            "August", "September", "October", "November", "December" };

    public static String getMonthName(int monthNumber) {
        return months[monthNumber];
    }
}

Related

  1. getMonthFromMonthName(String name)
  2. getMonthName()
  3. getMonthName(Date date)
  4. getMonthName(int index)
  5. getMonthName(int month, Locale locale)
  6. getMonthName(int MonthNumber)
  7. getMonthName(String code)
  8. getMonthName(String dateString)
  9. getMonthName(String month)