📅  最后修改于: 2022-03-11 14:52:41.845000             🧑  作者: Mango
Iterator iter = myArrayList.iterator();
while (iter.hasNext()) {
String str = iter.next();
if (someCondition)
iter.remove();
}