Determine the value

Report a typo

What is a value of the variable result?

int result = Stream.of(-1, 2, -3, 4)
                   .collect(Collectors.reducing(0, x -> x > 0 ? x : -x, (x, y) -> x + y));
Select one option from the list
___

Create a free account to access the full topic