Using NetBeans 8 but getting below compilation error for Lambda expression
问题 I am using NetBeans 8. When my code contains a Lambda expression and I try to compile, I get the following error message: lambda expression not expected here lambda expressions are not supported in -source 1.5 (use -source 8 or higher to enable lambda expressions) ---- (Alt-Enter shows hints) 回答1: Change compiler version of your source code into your project properties to jdk 8 and firstly check whether you have installed one. 回答2: Please click right from you project -> Properties -> Choose