Let's Get Takeout Step #5

Hi everyone,

Trying my hardest to learn Java, but now I’m stuck with this Let’s Get Takeout project. The wording is a little confusing for me.

In ShoppingBag.java, create a generic ShoppingBag class with a T type parameter upper bounded by an Integer type PricedItem.

ShoppingBag should have a private field called shoppingBag, which is a Map from a T to an Integer. ShoppingBag should also have a no argument constructor that initializes shoppingBag to an empty Map.

Can someone help me decipher this?


A link to the project would be very helpful.


May be this part of th elesson will help you:

If not, let me know than I try to help you in another way.

1 Like