for (Iterator<String> iterator = list.iterator(); iterator.hasNext();) {
String string = iterator.next();
if (string.contains("2")) {
iterator.remove();
}
}
转载于:https://my.oschina.net/sfshine/blog/470731