Map, Filter, Reduce
Vamos começar com um exemplo?
* Given a list of people
* We need to compute the average of the age of those peopl...
For further actions, you may consider blocking this person and/or reporting abuse
You can also use
IntSummaryStatistics:java.util.IntSummaryStatisticsis an object for collecting statistics such as count, min, max, sum, and average. For examplestats.getAverage(),stats.getMax(), etc., or just print all statistics using thestats.toString().Totally forgot about
IntSummaryStatistics, thanks for the complement!I know there are a lot of features in the Streams API. It may not be possible to list everything :)
Peguei o texto do meu notion e post do medium, caso haja algum problema que não percebi, me avisem!