会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
菜鸟的世界
博客园
首页
新随笔
联系
订阅
管理
2021年10月25日
Stream之list转map及问题解决
摘要: 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)
编辑
公告