首页 新闻 会员 周边

代码哪里给latest12Months2赋值了

0
悬赏园豆:5 [待解决问题]

for (int i = 0; i < list.length; i++) {
month = new LinkedHashMap();
month.put(list[i], "0");
latest12Months.add(month);
latest12Months2.add(month);
}
System.out.println("latest12Months2---------"+latest12Months2);
List<SecurityAdministrationDto> DH = securityAdministrationService.getDH();
List resultDH = new ArrayList();
for (int i = 0; i < latest12Months.size(); i++) {
for (String key : latest12Months.get(i).keySet()) {
String value = (String) latest12Months.get(i).get(key);
for (int j = 0; j < DH.size(); j++) {
if (key.equals(DH.get(j).getMonth())) {
((Map) latest12Months.get(i)).put(key, DH.get(j).getSum());
}
}
}
}
System.out.println("latest12Months---------"+latest12Months);
System.out.println("latest12Months2---------"+latest12Months2);

伊夏丶的主页 伊夏丶 | 初学一级 | 园豆:9
提问于:2019-04-11 09:53
< >
分享
所有回答(1)
0
latest12Months2.add(month);
ycyzharry | 园豆:25653 (高人七级) | 2019-04-11 13:22
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册