读书人

HashMap 正常遍历

发布时间: 2012-10-08 19:54:56 作者: rapoo

HashMap 一般遍历
Map map=new HashMap()
Iterator it=map.entrySet().iterator();
while(it.hasNext){
Map.Entry entry=it.next();
Object value=entry.getValue();
}

读书人网 >编程

热点推荐