[{"appointtime":"2015-12-31 00","count":0},{"appointtime":"2015-12-31 01","count":0},{"appointtime":"2015-12-31 02","count":0}]
[["2015-12-31 00",0],["2015-12-31",01],["2015-12-31 02",0]]
2 回答
已采纳
你好小Song
TA贡献29条经验 获得超10个赞
Map<Object,Object> map = new HashMap<>(); for(Map<String,Object> m:list){ map.put(m.get("appointtime"),m.get("count")); } System.out.println(map); 另: 楼主题目的结果数据是不是写错了, 应该为[["2015-12-31 00",0],["2015-12-31 01",0],["2015-12-31 02",0]]
慕粉3233872
TA贡献70条经验 获得超29个赞
Map<Object,Object> map = new HashMap<>(); for(Map<String,Object> m:list){ map.put(m.get("appointtime"),m.get("count")); } System.out.println(map);
添加回答
举报
0/150
提交
取消