HashMap<String, TreeMap<String, String>> czbk = new HashMap<String, TreeMap<String,String>>();
TreeMap<String, String> jqb = new TreeMap<String, String>();
jqb.put("jqb0001", "王朝");
jqb.put("jqb0002", "马汉");
TreeMap<String, String> jyb = new TreeMap<String, String>();
jyb.put("jyq0001", "张龙");
jyb.put("jyb0002", "赵虎");
czbk.put("jqb", jqb);
czbk.put("jyb", jyb);
Set<Map.Entry<String, TreeMap<String,String>>> set1 = czbk.entrySet();
for (Map.Entry<String, TreeMap<String,String>> entry : set1) {
System.out.println(entry.getKey());
TreeMap<String, String> tm1 = entry.getValue();
Set<Map.Entry<String, String>> set2 = tm1.entrySet();
for (Map.Entry<String, String> entry2 : set2) {
System.out.println(entry2); |
|