1.问题描述

idea工具使用问题之Diamond types are not supported at this language level

2.解决方案

2.1.选中当前的项目

idea工具使用问题之Diamond types are not supported at this language level

2.2. FIle–>Project Structure

idea工具使用问题之Diamond types are not supported at this language level

2.3.选择JDK对应的Language Level版本

idea工具使用问题之Diamond types are not supported at this language level

language -level选择对应的jdk版本即可
idea工具使用问题之Diamond types are not supported at this language level
如下不在报错
idea工具使用问题之Diamond types are not supported at this language level

相关文章: