September 2019
Intermediate to advanced
816 pages
18h 47m
English
A new day, a new idea! Any smart IDE can show us the road ahead. For example, the NetBeans IDE will discretely warn us that this anonymous class can be written as a lambda expression.
This is shown in the following screenshot:

The message is crystal clear – This anonymous inner class creation can be turned into a lambda expression. Here, make the transformation by hand or let the IDE do it for us.
The result will look like this:
List<Melon> europeansLambda = Filters.filterMelons( melons, m -> "europe".equalsIgnoreCase(m.getOrigin()));
This is much better! Java 8 lambda expressions did a great ...
Read now
Unlock full access