July 2023
Intermediate to advanced
276 pages
6h 55m
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 powerful 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 take some of the ideas we saw in this chapter further to almost effortlessly transform data.
Read now
Unlock full access