lambda expressions are not supported at this language level
- 람다 표현식을 쓰려면 JDK 버전과 언어 레벨을 1.8 이상으로 높여야 함
- IDE에서 JDK 버전, 언어 레벨을 지정하고 프로젝트의 언어 레벨을 1.8이상으로 지정하면 해결됨
- Eclipse
- Windows > Preferences > Java > Installed JREs
- Project > Properties > Java Build Path > Libraries > JRE System Library
- IntelliJ
- File > Settings > Build, Execution, Deployment > Compiler > Java Compiler
- Project bytecode version
- Module의 Target bytecode version
- File > Project Structure > Project Settings > Project
- Project SDK
- Project language level
- File > Project Structure > Project Settings > Module
- File > Project Structure > Platform Settings > SDKs