public enum Day extends Enum<Day>
Enum Constant and Description |
---|
FRIDAY |
MONDAY |
SATURDAY |
SUNDAY |
THURSDAY |
TUESDAY |
WEDNESDAY |
Modifier and Type | Method and Description |
---|---|
static Day |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Day[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Day SUNDAY
public static final Day MONDAY
public static final Day TUESDAY
public static final Day WEDNESDAY
public static final Day THURSDAY
public static final Day FRIDAY
public static final Day SATURDAY
public static Day[] values()
for (Day c : Day.values()) System.out.println(c);
public static Day 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 © 2023 iland Internet Solutions, Corp. All rights reserved.