JAVA的问题,为什么CMD老是提示我valuseh后面要加括号,我已经加了括号的?
程序代码:
public class q1{ public static void main(String args[]){ for(weekday x:weekday.values()){ System.out.println(x); } } public enum weekday{ monday,sunday } }
public class q1{ public static void main(String args[]){ for(weekday x:weekday.values()){ System.out.println(x); } } public enum weekday{ monday,sunday } }