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?
You need to download the latest version of eclipse from here:https://eclipse.org/downloads/
Take the Luna version.