Partinioning and summing numbers

Report a typo

Here is a stream with the main collector and a downstream collector:

Map<Boolean, Long> map = Stream.of(5, 1, 9, -2, -5, 1)
        .collect(Collectors.partitioningBy(n -> n > 0, Collectors.summingLong(x -> x)));

Select one correct statement after executing this code.

Select one option from the list
___

Create a free account to access the full topic