errCodeMap是要遍历的Map,
Iterator it = errCodeMap.entrySet().iterator();
while(it.hasNext()){
Map.Entry entry = (Entry) it.next();
String key = entry.getKey().toString(); // 返回的对应map的key值
String value = entry.getValue().toString(); // 返回的对应map的value值
}
时间: 2024-10-10 22:04:00