Using NetBeans 8 but getting below compilation error for Lambda expression

前端 未结 4 943
情歌与酒
情歌与酒 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:21

    Change compiler version of your source code into your project properties to jdk 8 and firstly check whether you have installed one.

提交回复
热议问题