| Enum Constant and Description |
|---|
April
One of the twelve months of the year
|
August
One of the twelve months of the year
|
December
One of the twelve months of the year
|
February
One of the twelve months of the year
|
January
One of the twelve months of the year
|
July
One of the twelve months of the year
|
June
One of the twelve months of the year
|
March
One of the twelve months of the year
|
May
One of the twelve months of the year
|
November
One of the twelve months of the year
|
October
One of the twelve months of the year
|
September
One of the twelve months of the year
|
| Modifier and Type | Method and Description |
|---|---|
static MonthName |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MonthName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MonthName January
public static final MonthName February
public static final MonthName March
public static final MonthName April
public static final MonthName May
public static final MonthName June
public static final MonthName July
public static final MonthName August
public static final MonthName September
public static final MonthName October
public static final MonthName November
public static final MonthName December
public static MonthName[] values()
for (MonthName c : MonthName.values()) System.out.println(c);
public static MonthName valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null