getting compile error for diamond operator in idea ide

匆匆过客 提交于 2019-11-27 05:24:27

You need to set the project language level (default for all modules) and the module(s) language level

Make sure that, in the Project Structure page, you have set your project language level to 7.0.

After you select this, you will have to reopen your project, but then your diamond operators should compile.

Check Project Structure tab in IDEA, find the followng navigational path

Project Structure -> Project -> Project SDK

Follow these steps.

Right Click on the project------>> go to Open module Settings--->
In that opening window click the Project in project settings---->
and set project SDK
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!