摘要: List集合转Map,用到的是Stream中Collectors的toMap方法:Collectors.toMap 具体用法实例如下: //声明一个List集合 List<Person> list = new ArrayList(); list.add(new Person("1001", "小A" 阅读全文
posted @ 2021-10-25 09:11 小雨初下 阅读(7982) 评论(0) 推荐(0) 编辑