两种方式:java
采用it.remove( ),其中it是list列表的Iterator指针;spa
能够将要删除的元素先保存到另一个List列表中,然会采用list.removeAll(removeList),将符合条件的元素删除指针
注意:不可采用list.remove(object),不然会出现java.util.ConcurrentModification Exception异常信息rem