getting compile error for diamond operator in idea ide

后端 未结 4 1087
既然无缘
既然无缘 2020-11-30 13:57

I am getting this error while trying to compile some simple source code in idea ide.

java: diamond operator is not supported in -source 1.6 (use -source 7 or         


        
4条回答
  •  北海茫月
    2020-11-30 14:11

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

    Project Structure -> Project -> Project SDK

    enter image description here

提交回复
热议问题