public static void main(String[] args) {
/**
* 先对名字进行分组,然后按照年龄进行分组
*/
Map<String, Map<Object, List<Person>>> map = Stream.of(
new Person("张三", 18, 175),
new Person("李四", 22, 177),
new Person("张三"
Stream流对数据进行分组
最新推荐文章于 2024-06-21 17:40:28 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)