| Enum Constant and Description |
|---|
Friday
One of the seven days of the week
|
Monday
One of the seven days of the week
|
Saturday
One of the seven days of the week
|
Sunday
One of the seven days of the week
|
Thursday
One of the seven days of the week
|
Tuesday
One of the seven days of the week
|
Wednesday
One of the seven days of the week
|
| Modifier and Type | Method and Description |
|---|---|
static DayName |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DayName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DayName Sunday
public static final DayName Monday
public static final DayName Tuesday
public static final DayName Wednesday
public static final DayName Thursday
public static final DayName Friday
public static final DayName Saturday
public static DayName[] values()
for (DayName c : DayName.values()) System.out.println(c);
public static DayName 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