import java.util.Iterator;
Iterator it = mapb.entrySet().iterator();// 循环部分 mapb
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
String key = entry.getKey().toString();
String value=entry.getValue().toString();
原文地址:http://blog.csdn.net/u011182301/article/details/43153437