Try reduce of streams, it should help.
Like:
listOfIntegers.stream().reduce(1, (a, b) -> a * b)
This link provides more information on how to use reduce.
Try reduce of streams, it should help.
Like:
listOfIntegers.stream().reduce(1, (a, b) -> a * b)
This link provides more information on how to use reduce.