Java 流式操作 Stream(10) 收集器Collector
package com.lius.collector; import java.util.*; import java.util.stream.Collectors; import java.util.stream.Stream; /** * <p>collector apply</p> */ public class collectorTest2 { public static void main(String[] args) { //初始化数据 student student1 = new student("zhangsan", 90); student student2 = new student("lisi", 80); student student3 = new student("zhangsan", 80); student student4 = new student("wangwu", 60); student student5 = new student("zhaoliu", 100); student student6 = new student("zhaoliu",
Java 流式操作 Stream(10) 收集器Collector
最新推荐文章于 2024-08-15 20:19:44 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)