a) An intermediate operation specifies tasks to perform on the stream’s elements; this is
efficient because it avoids creating a new stream.
b) Reduction operations take all values in the stream and turn them into a new stream.
c) If you need an ordered sequence of int values, you can create an IntStream containing
such values with IntStream methods range and rangeClosed. Both methods take two
int arguments representing the range of values. Method rangeClosed produces a sequence
of values from its first argument up to, but not including, its second argument.
Method range produces a sequence of values including both of its arguments.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here