O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

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

There's more...

The java.util.stream package also provides specialized interfaces, namely IntStream, DoubleStream, and LongStream, that are optimized for processing streams of values of corresponding primitive types. It is very convenient to use them in the case of reducing operations. For example, they have max(), min(), average(), sum(), and many other simplified (tuned for performance) methods that can be called on these streams directly as intermediate and terminal operations.

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