debug提示:
all elements are null
导致一直无法过滤掉
解决方案:
list.removeAll(Collections.singleton(null));
本文讲述了在Java开发中遇到的一个问题,即debug时提示所有元素都为null,导致无法正常过滤。解决方案是使用`list.removeAll(Collections.singleton(null))`来移除列表中的null元素。
debug提示:
all elements are null
导致一直无法过滤掉
解决方案:
list.removeAll(Collections.singleton(null));
2659
874
1535
450
961

被折叠的 条评论
为什么被折叠?