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!
List<Integer> evenNumbers = filter(numbers, (Integer i) -> i % 2 == 0);
String twoLines = processFile((BufferedReader br) -> br.readLine() + br.readLine());
// ^ no second parenthesis here
List<Stream<String>>
setRotationAngle((getRotationAngle () + angleInDegrees) % 360);
public interface A { default void hello() { System.out.println("Hello from A"); } } public interface B { default void hello() { System.out.println("Hello from B"); } } public class C implements B, A { }
"The variable optPerson is of type Optional<Person>, so it's perfectly fine to ..."
"Using the for-each loop in Java, for(Apple a : apples) { } decodes into ..."
That's all for now folks!
Raoul Urma, Mario Fusco, Alan Mycroft