java 8 lambdas, chapter 2, exercise 2