Section 17.4.1 Creating a Stream<Integer>
• Interface Stream
(package java.util.stream;
p. 744) is a generic interface for performing stream operations on objects. The types of objects that are processed are determined by the Stream
’s source.
• Class Arrays
provides overloaded stream
methods for creating IntStream
s, LongStream
s and DoubleStream
s from int
, long
and double
arrays or from ranges of elements in the arrays.
Get Java™ How To Program (Early Objects), Tenth Edition 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.