blob: 1cb979d01a73b3dc81354b321d43e9862d29c1cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
enum Ranks {
CLUBS, HEARTS, DIAMONDS, SPADES;;
}
enum Complex {
RED("ff0000"), GREEN("00ff00"), BLUE("0000f");
private final String webColour;
Complex(String webColour) {
this.webColour = webColour;
}
public String getWebColour() {
return webColour;
}
}
enum Complexer {
RED {
public void foo() {
}
public void bar() {
}
},
GREEN("foo") {
public void foo() {
}
};
public abstract void foo();
Complexer(String colour) {
}
Complexer() {
}
}
|