eclipse的Window->Preference->Java->Compiler,在JDK Compliance中有一项:Compiler compliance level,这一项的值是1.4,默认是1.4,改成自己JDK安装的版本。在eclipse中就认识了枚举类型enum。
转载于:https://www.cnblogs.com/bjchaofan/p/3470252.html
转载于:https://www.cnblogs.com/bjchaofan/p/3470252.html