Using NetBeans 8 but getting below compilation error for Lambda expression

前端 未结 4 953
情歌与酒
情歌与酒 2020-12-20 12:52

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         


        
4条回答
  •  清酒与你
    2020-12-20 13:13

    Please click right from you project -> Properties -> Choose Sources -> (you will see Source/Binary Format) change it to 1.8 -> Click OK.

    Or you can see in this link http://tinadev.blogspot.com/2015/08/lambda-expression-not-expected-here.html

    Thanks

提交回复
热议问题