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(