public enum WeekDays extends Enum<WeekDays>
| Enum Constant and Description |
|---|
FRIDAY |
MONDAY |
SATURDAY |
SUNDAY |
THURSDAY |
TUESDAY |
WEDNESDAY |
| Modifier and Type | Method and Description |
|---|---|
static WeekDays |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WeekDays[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeekDays SUNDAY
public static final WeekDays MONDAY
public static final WeekDays THURSDAY
public static final WeekDays WEDNESDAY
public static final WeekDays TUESDAY
public static final WeekDays FRIDAY
public static final WeekDays SATURDAY
public static WeekDays[] values()
for (WeekDays c : WeekDays.values()) System.out.println(c);
public static WeekDays valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullCopyright © 2014. All Rights Reserved.