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 lam
Change compiler version of your source code into your project properties to jdk 8 and firstly check whether you have installed one.