(change:minor) Check for maxQty <= 0 and in this case refuse to buy an item.

(change:minor) Replace Integer values with int (make use of boxing/unboxing feature of modern Java)