blob: 924aa861d7e87cc472a062e999a21a0df7ef9a84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package com.example;
public class NestedEnum {
public static int value() {
State state = State.ON;
if (state == State.ON) {
return 42;
} else {
return 0;
}
}
public static enum State {
ON,
OFF
}
}
|