February 2014
Beginner
1248 pages
62h 25m
English
When you pass an array of objects to class Arrays’s static method stream, the method returns a Stream of the appropriate type—e.g., line 19 produces a Stream<Integer> from an Integer array. Interface Stream (package java.util.stream) is a generic interface for performing stream operations on any non-primitive type. The types of objects that are processed are determined by the Stream’s source.
Class Arrays also provides overloaded versions of method stream for creating IntStreams, LongStreams and DoubleStreams from entire int, long and double arrays or from ranges of elements in the arrays. The specialized IntStream, LongStream and DoubleStream classes provide various methods for common operations on numerical ...
Read now
Unlock full access