You have a shopping cart with sweets – it should be presented as Map<String, Integer>, where the key is the name of a sweet and the value is its price. You should fill Map<String, Integer> from console and then count the total cost of the shopping cart.
Firstly, you get the number of sweets in the cart; then, you get their names and prices.