01Chapter 1: Why Lambdas? Passing Behavior with Anonymous ClassesSometimes a method needs you to hand it some behavior, such as "compare two names and ignore upper and lower case." Before Java 8, the usual way to do this was an anonymous class. An anonymous class is a class with no name that you define and create in one place. It works, but it takes several lines2 min read
02Chapter 2: Using Local Variables Inside LambdasThis chapter covers four topics in order: using outside variables in a lambda, shortening lambdas with method references, defining your own functional interfaces, and using lambdas with lists and maps.1 min read