集合遍历
1.ArrayList遍历删除
Iterator<App> iter = arrayList.iterator();
while(iter.hasNext()){
App app = iter.next();
if(app.getScan()==-2){
iter.remove();
}
}
2.HashMap遍历取值(键+值)
Map map = new HashMap();
Iterator iter = map.entrySet().iterator();
while (iter.hasNext()) {
map.Entry entry = (Map.Entry) iter.next();
Object key = entry.getKey();
Object val = entry.getValue();
}