最全的map 封装 map

public static void main(String[] args) {
Map m = new HashMap();

for (int i = 0; i < 7; i++) {
Map map = new HashMap();
map.put(i, i);
m.put(i, map);
}
Map map = (Map) m.get(0);
System.out.println( map.get(0));

}

posted @ 2019-07-06 08:31  zzl0916  阅读(665)  评论(0编辑  收藏  举报