Collectors.LongStatistics Min/Max Values

Robert J. Saulnier robert.j.saulnier at
Thu Feb 28 12:12:33 PST 2013

I'm guessing this was already discussed.

Why does the following print "min=0" instead of "min=1"?

List<Long> nums = Arrays.asList(1L, 2L, 3L);

Collectors.LongStatistics stats =;

System.out.println("min=" + stats.getMin());

Same issue with max if all the numbers are negative.

More information about the lambda-dev mailing list