Jeanne Boyarsky wrote:
Javid Asgarov wrote:This is wrong, calling summaryStatistics on empty IntStream doesnt have a single method to return an Optional.
You are correct. I've added this to the errata. Thank you for noticing this. Have a cow!
getMin() and getMax() return MIN_VALUE and MAX_VALUE respectively.
Javid Asgarov wrote:
getMin() -> returns Integer.MAX_VALUE if no values present
getMax() -> returns Integer.MIN_VALUE if no values present