Java 8 in Action - Errata
Java 8 in Action - Errata
Here's the (May 2015) list of known errors for (the print and final PDF download version of) Java 8 in
Action.
If you find any other error, please post it to the book's Author Online Forum.
Thanks!
Chapter 2, Page 36
The final code example in Section 2.3.4 should read:
List<Integer> evenNumbers =
filter(numbers, (Integer i) -> i % 2 == 0);
Chapter 3, Page 49
In Figure 3.3 (box 4), the final declaration should read:
String twoLines = processFile((BufferedReader br) ->
br.readLine() + br.readLine());
// ^ no second parenthesis here
Chapter 5, Page 97
The bottom line should contain
List<Stream<String>>
"Using the for-each loop in Java, for(Apple a : apples) { } decodes into ..."