mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 17:51:09 +07:00
19 lines
256 B
Java
19 lines
256 B
Java
// "Create enum constant 'D3'" "true"
|
|
public enum Demo {
|
|
|
|
D1("foo"),
|
|
D2("bar"), D3()<caret>;
|
|
private String name;
|
|
|
|
Demo(String name) {
|
|
|
|
this.name = name;
|
|
}
|
|
}
|
|
|
|
class Show {
|
|
|
|
public void doSomething() {
|
|
Demo.D3
|
|
}
|
|
} |