mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +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
|
|
}
|
|
} |