在这里插入图片描述

报错:An enum switch case label must be the unqualified name of an enumeration constant
大意就是“枚举的switch case标签必须是枚举常量的非限定名称”。

改成这样就好了:
在这里插入图片描述

参考博文:http://blog.sina.com.cn/s/blog_e5fee3c30102xbas.html

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐