-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
8
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
The provided snippet for 3 argument reduce method in the stream api,
The below snippet comma is missing.
Comma should come before Integer::sum
int sumOfWeights = widgets.stream()
.reduce(0,
(sum, b) -> sum + b.getWeight())
Integer::sum);
The provided snippet for 3 argument reduce method in the stream api,
The below snippet comma is missing.
Comma should come before Integer::sum
int sumOfWeights = widgets.stream()
.reduce(0,
(sum, b) -> sum + b.getWeight())
Integer::sum);
- duplicates
-
JDK-8043328 Typo in documentation of package java.util.stream
- Closed