点击运行
enum Level { LOW, MEDIUM, HIGH } public class Main { public static void main(String[] args) { Level myVar = Level.MEDIUM; System.out.println(myVar); } }
运行结果 :
正在执行...