'<>' operator is not allowed for source level below 1.7

报错:'<>' operator is not allowed for source level below 1.7

这个是编译环境和项目的要求不对应,导致出现这种情况。

右击项目---》Java Compiler 中选中Enable project specific settings; 将jdk版本选中为1.7

 

posted @ 2018-04-09 10:56  美国大兵  阅读(1188)  评论(0编辑  收藏  举报