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

来源:互联网 发布:矩阵可逆与秩的关系 编辑:程序博客网 时间:2024/05/31 13:14

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

这是eclipse的编译环境与项目的要求不对应造成的,这个错误一般是导入别的项目才出现的。

解决:

右键项目--属性--勾选Enable project  specific  settings--Compiler compliance level--选择1.7--OK

2 10
原创粉丝点击