报错:An enum switch case label must be the unqualified name of an enumeration constant 大意就是“枚举的switch case标签必须是枚举常量的非限定名称”。 改成这样就好了: 参考博文:java报错:An enum switch case label must be the unqualified name of an enumeration constant_f8下一步的博客-CSDN博客