java enum syntax code example
Example 1: enum java
public enum AlertLevel {
Undefined(0),
Ok(1),
Warning(2),
Alarm(3);
}
Example 2: enum java
private enum VarState {
INIT,
TRUE,
FALSE,
UNSATISFIABLE
}
public enum AlertLevel {
Undefined(0),
Ok(1),
Warning(2),
Alarm(3);
}
private enum VarState {
INIT,
TRUE,
FALSE,
UNSATISFIABLE
}