直接上结果,以下方式是推荐的写法,高效遍历Map
for(Iterator ite = map.entrySet().iterator(); ite.hasNext();){
Map.Entry entry = (Map.Entry) ite.next();
entry.getKey();
entry.getValue();
转自:http://blog.csdn.net/Matol/article/details/7704844
直接上结果,以下方式是推荐的写法,高效遍历Map
for(Iterator ite = map.entrySet().iterator(); ite.hasNext();){
Map.Entry entry = (Map.Entry) ite.next();
entry.getKey();
entry.getValue();
转自:http://blog.csdn.net/Matol/article/details/7704844