Search:

Type: Posts; User: Jesdisciple; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    9
    Views
    47,480

    Note: As the same item in a different slot should...

    Note: As the same item in a different slot should have the same price, the price should probably be kept track of separately such as in a Map<String, int>.
  2. Replies
    9
    Views
    47,480

    Use a Vector as your VendingMachine's...

    Use a Vector<Slot> as your VendingMachine's internal representation, and give each Slot name, price, and quantity properties. When finding a Slot, iterate through the Vector and examine each item's...
  3. Replies
    9
    Views
    47,480

    First of all, don't think I'm coming down on you...

    First of all, don't think I'm coming down on you for anything. This is intended as constructive criticism.

    JavaScript is not Java. It shouldn't have even been named "JavaScript"; it's a...
Results 1 to 3 of 3