Is there a sum() equivalent method in stream which can perform multiplication of values given in a stream?
I\'ve a list of Integers like this :
List
And here is an example for decimal products:
// Some list List values; ... double product = values.stream() .reduce(1.0, (acc, value) -> acc * value) .doubleValue();