java for循环下删除map集合元素的正确操作
Map<Product, Integer> map = (Map<Product, Integer>) request.getSession().getAttribute("map"); Iterator<Product> iterator = map.keySet().iterator(); while(iterator.hasNext()) {...