O'Reilly logo

Learning Java Functional Programming by Richard M Reese

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Streams and the Evaluation of Expressions

In this chapter, we will examine how Java 8 supports the concept of streams. A stream can be thought of as a sequence of elements processed by a series of methods using a fluent interface. The stream concept is supported by the Stream class.

We will begin with a brief overview of the Stream class and its methods. After conveying the essence of the stream technique, we will examine how streams are created and show how they can replace imperative and object-oriented approaches to solve similar problems. The intent is to provide an overview of the Stream class and its methods. A detailed coverage of each method is not possible here.

The topics you will cover include the following:

  • Creating fixed and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required