if (cart.containsKey(product)) { int currq = cart.get(product); currq += quantity; cart.put(product, currq); } else { cart.put(product, quantity); }
System.out.println("To be implemented");
return cart;
// dummy