java 从list里删除某些元素
for (Iterator it = list_tag.iterator(); it.hasNext();) {
Report r = (Report) it.next();
if (r.getId().equals(id)) {
it.remove();
}
}
李岩 java lucene 搜索 nosql hadoop 博客 mongodb
for (Iterator it = list_tag.iterator(); it.hasNext();) {
Report r = (Report) it.next();
if (r.getId().equals(id)) {
it.remove();
}
}
姓名 | |
邮箱 | |
URL | |