java循环map


Iterator<Entry<String,Integer>> it = exsitMap.entrySet().iterator();
while(it.hasNext()){
Entry<String,Integer> entry =it.next();
ActivityDetail a=new ActivityDetail();
a.setActivityType(entry.getValue());
list.add(a);
}

原文地址:https://www.cnblogs.com/jcz1206/p/5764171.html