Determine the result of reduction

Report a typo

Given a piece of code with a stream:

long result = Stream.of(1, 2, 3, 4, 5).reduce(1, (x, y) -> x * y);

The result is ...

Enter a number
___

Create a free account to access the full topic