方法一、list.removeAll(Collections.singleton(null));
方法二、List nullList = new ArrayList();
nullList.add(null);
list.removeAll(nullList);
方法三、
Iterator it = list.iterator();
while (it.hasNext()) {
if (it.next() == null) {
it.remove();
}
}