HashMap vars= new HashMap();
map.put("a","aaaa");
map.put("b","bbbb");
map.put("c","cccc");
map.put("d","dddd");
Set<String> s = vars.keySet();
//进行键的集合的遍历
for(String key : s){
//根据得到的键,获取对应的值
String zhi = String.valueOf(vars.get(key));
System.out.println("key:"+key+"==value:"+zhi);
}