遍历
String insertKeyStr = "";
String insertValStr = "";
Integer i = 0;
for (Object key : map.keySet()) {
Object value = map.get(key);
insertKeyStr += key + ", ";
insertValStr += "\"" + value + "\", ";
if ( i < map.keySet().size() - 1 ) {
insertKeyStr += ",";
insertValStr += ",";
}
i++;
}
标签:Map,Java,insertKeyStr,map,insertValStr,key
From: https://www.cnblogs.com/wangjinkui/p/16917451.html