会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小破孩楼主
博客园
首页
新随笔
联系
管理
2018年8月20日
JAVA List中剔除空元素(null)的方法
摘要: 方法一、list.removeAll(Collections.singleton(null)); 方法二、List nullList = new ArrayList(); nullList.add(null); list.removeAll(nullList); 方法三、 Iterator it =
阅读全文
posted @ 2018-08-20 10:45 小破孩楼主
阅读(29329)
评论(0)
推荐(1)
编辑