17. Lambdas and Streams

Objectives

In this chapter you’ll:

Image Learn various functional-programming techniques and how they complement object-oriented programming.

Image Use lambdas and streams to simplify tasks that process sequences of elements.

Image Learn what streams are and how stream pipelines are formed from stream sources, intermediate operations and terminal operations.

Create streams representing ranges of int values and random int values.

Implement ...

Get Java 9 for Programmers 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.