Bookmark Topic Watch Topic
  • New Topic

Shopping cart Arraylist  RSS feed

 
Nicky Larson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Report post to moderator
QUESTIONS:
Implement addToPurchaseCart(MusicalInstrument instrument, int quantity), which will first check to see that the number of Instruments purchased does not exceed the number currently in stock. If the number being purchased is OK, then add that number of Instruments to the purchased ArrayList. Also, don’t forget to delete the same number of Instruments from the inventory.
_______________________



=> cannot find Symbol - variable quantityInStock

I have the following from MusicalInstrument class:

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please continue any discussion in your original post on this problem.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!