Using NetBeans 8 but getting below compilation error for Lambda expression

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

    In the project properties dialog, select Sources in the left panel and then on the bottom right look for "Source/Binary Format" Change that to JDK 8.

提交回复
热议问题