http://www.iteye.com/problems/86110
——————————————————————————————————————————————————————————
Listlist = billFacade.findBillByUserId(userInfo); Map group = new HashMap ();String type = null;Float moneyTotal = 0f;for(Bill bill : list){type = bill.getType(); moneyTotal = group.get(type); if(moneyTotal == null){ moneyTotal = 0f; } group.put(type, moneyTotal + bill.getMoney()); }