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 =
nums.stream().collect(Collectors.toLongStatistics());
System.out.println("min=" + stats.getMin());
Same issue with max if all the numbers are negative.