Miguel Corrales

Greenhorn
+ Follow
since Jun 05, 2013
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Miguel Corrales

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!



It seems that the errata text swapped the values:

getMin() and getMax() return MIN_VALUE and MAX_VALUE respectively.



as originally put  

Javid Asgarov wrote:
getMin() -> returns Integer.MAX_VALUE if no values present
getMax() -> returns Integer.MIN_VALUE if no values present