使用
Iterator和致电
remove():
Iterator<String> iter = myArrayList.iterator();while (iter.hasNext()) { String str = iter.next(); if (someCondition) iter.remove();}
使用
Iterator和致电
remove():
Iterator<String> iter = myArrayList.iterator();while (iter.hasNext()) { String str = iter.next(); if (someCondition) iter.remove();}