February 2014
Intermediate to advanced
160 pages
4h 59m
English
The regular tasks of working with strings and files and creating custom comparators got a lot easier and more concise with lambda expressions and method references. Anonymous inner classes morphed into an elegant style and, along the way, mutability disappeared like the fog in the morning sun. As a bonus for favoring this style, we can benefit from the new JDK facilities to iterate efficiently over large directories.
Now you know how to create lambda expressions to pass as parameters to methods. In the next chapter we’ll look at ways to design programs with functional interfaces and lambda expressions.
| [8] |