java enum in enum code example
Example 1: Enums injava
public enum Day {
SUNDAY, MONDAY, TUESDAY, WEDNESDAY,
THURSDAY, FRIDAY, SATURDAY
}
Example 2: enum java
public enum AlertLevel {
Undefined(0),
Ok(1),
Warning(2),
Alarm(3);
}
public enum Day {
SUNDAY, MONDAY, TUESDAY, WEDNESDAY,
THURSDAY, FRIDAY, SATURDAY
}
public enum AlertLevel {
Undefined(0),
Ok(1),
Warning(2),
Alarm(3);
}