会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一个笨蛋的博客
好记性不如烂笔头,多学多总结
首页
新随笔
管理
2022年7月13日
JDK8流(stream)常用操作(List转Map,List转Set)
摘要: 1、获取年龄>20的人员列表 List<User> list = users.stream().filter(item -> item.getAge() != null && item.getAge() > 20).collect(Collectors.toList()); 2、以ID(id+use
阅读全文
posted @ 2022-07-13 15:50 玄同太子
阅读(1627)
评论(0)
推荐(0)
公告