February 2014
Beginner
1248 pages
62h 25m
English
• You can define your own reductions for an IntStream by calling its reduce method. The first argument is a value that helps you begin the reduction operation and the second argument is an object that implements the IntBinaryOperator (p. 740) functional interface.
• Method reduce’s first argument is formally called an identity value (p. 740)—a value that, when combined with any stream element using the IntBinaryOperator produces that element’s original value.
Read now
Unlock full access