import java.util.HashMap;
import java.util.Set;
public class MaoPao {
public static void main(String[] args) {
HashMap<String, HashMap<String, String>>czbk = new HashMap<String, HashMap<String, String>>();
HashMap<String, String>yr = new HashMap<String,String>();
yr.put("01","zhangs");
yr.put("02","lis");
czbk.put("yr", yr);
HashMap<String, String>jy = new HashMap<String,String>();
jy.put("01","zdhangs");
jy.put("02","lifds");
czbk.put("jy", jy);
czbk.put("jy",jy);
Set<String>czbkkeys = czbk.keySet();
for (String czbkkey : czbkkeys) {
System.out.println(czbkkey);
HashMap<String, String>czbkValue = czbk.get(czbkkey);
Set<String>bikeys = czbkValue.keySet();
for (String bjkey : bikeys) {
String bjValue = czbkValue.get(bjkey);
System.out.println("\t"+bjkey+"----"+bjValue);
}
}
}
}
|
|