2024-11-02 07:32:04
Map<String, Map<String, Object>> map=new HashMap<String, Map<String, Object>>();
for (int i = 0; i < 3; i++) {
Map<String, Object> mapchild=new HashMap<String, Object>();
mapchild.put("url", 1);
mapchild.put("car_where", 2);
mapchild.put("car_String", 3);
mapchild.put("car_number", 4);
map.put("map"+i, mapchild);
}
for (int i = 0; i < map.size(); i++) {
//这里面data.add(map.get("map"+i));
System.out.println(map.get("map"+i).get("url"));
}