Iterator it = list. iterator();
While(it.hasNext()){
String a = it.next();
if(a.equals(“移除”)){
it.remove();
}
}
Iterator的使用
最新推荐文章于 2024-10-27 08:26:56 发布
Iterator it = list. iterator();
While(it.hasNext()){
String a = it.next();
if(a.equals(“移除”)){
it.remove();
}
}