Enum Constant and Description |
---|
April |
August |
December |
February |
January |
July |
June |
March |
May |
November |
October |
September |
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