Trying to use lambda for the first time and the code doesn't compile

82 Views Asked by At

I trying to use the lambda expressions in Java-8 using eclipse IDE.

I took this example from some youtube tutorial which worked well there, but in my code it doesn't and it gave me this error.

I tried to add Integer before the value and it still the same.

How can I solve it?

enter image description here

1

There are 1 best solutions below

0
On

You need to download the latest version of eclipse from here:https://eclipse.org/downloads/

Take the Luna version.