单纯刺猬

文章
4
资源
0
加入时间
3年0月28天

stream流简单用法总结

List<Integer> numList = Arrays.asList(1,2,5,10); //方法一: int max = numList.stream().mapToInt(x -> x).summaryStatistics().getMax(); int min = numList.stream().mapToInt(x -> x).summaryStatistics().getMin(