1. 问题:java: -source 1.5中不支持switch中存在字符串

解决方案:修改file -> project structure -> Modules ->Sources -> Language Level 为7

2.问题: Error:java: Compilation failed: internal java compiler error
解决方案:修改java compiler里的target版本和项目JDK保持一致。

1. 问题:java: -source 1.5中不支持switch中存在字符串
解决方案:修改file -> project structure -> Modules ->Sources -> Language Level 为7
2.问题: Error:java: Compilation failed: internal java compiler error
解决方案:修改java compiler里的target版本和项目JDK保持一致。