How to Read the Code Examples

When writing code in Java, we place classes in packages, and executable statements and expressions in methods. To reduce clutter, we’ll skip the package names and imports in the code listings. All code in this book belongs to a package:

 
package​ fpij;

Any executable code not listed within a method is part of an undisplayed main method. When going through the code listings, if you have an urge to look at the full source code, remember it’s only a click away at the website for this book.

Get Functional Programming in Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.