报错:'<>' operator is not allowed for source level below 1.7
这是eclipse的编译环境与项目的要求不对应造成的,这个错误一般是导入别的项目才出现的。
解决:
右键项目--属性--勾选Enable project specific settings--Compiler compliance level--选择1.7--OK
转载自 : https://blog.csdn.net/sam_jet/article/details/45744251