System.out.println(list.toString());
Iterator<User> it = list.iterator();
while (it.hasNext()) {
User userObj = it.next();
if ("0".equal(userObj.getStatus())) {
it.remove();
}
}
System.out.println(list.toString());
发表评论: