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);
}

posted @ 2016-08-12 11:06  JIN__JIN  阅读(246)  评论(0编辑  收藏  举报