去重和取出空元素

stream流去重

distinct()方法

Java8-Stream流操作List去重distinct、和指定字段去重(完整实例讲解)_Java尖子生的博客-CSDN博客_list stream distinct

stream流去除空元素

使用fliter过滤

(4条消息) stream 流过滤空元素_Java-Soul的博客-CSDN博客_stream过滤空值

posted on 2023-01-11 18:21  影子BLH  阅读(51)  评论(0)    收藏  举报