Search:

Type: Posts; User: maple1100

Search: Search took 0.15 seconds.

  1. Replies
    10
    Views
    1,573

    Re: Java abstract/implements

    Jaguar: Quantity = 2, Total cost = 2100000.0
    Neon: Quantity = 3, Total cost = 52375.32
    Jigsaw: Quantity = 1, Total cost = 149.18
    RAM: Quantity = 1, Total cost = 35700.0
    CircularSaw: Quantity = 2,...
  2. Replies
    10
    Views
    1,573

    Re: Java abstract/implements

    Is there another way to print out the results? That the only wait I could of think, as it complete the inner loop, it print.
  3. Replies
    10
    Views
    1,573

    Re: Java abstract/implements

    Oh, I don't mean to code it for me. I updated the code with the loop going through and keeping the quantity above, but it printing all the items. IE if there 2 item A, it would print item A two time...
  4. Replies
    10
    Views
    1,573

    Re: Java abstract/implements

    Chris, thanks for the reply! Can you give me help on my updated code above? Thanks
  5. Replies
    10
    Views
    1,573

    Java abstract/implements

    takeInventory suppose to keep count of the items that passes through and print their quantity. The result I'm getting is
    "guar: Quantity = 2, Total cost = 1110000.0
    Neon: Quantity = 3, Total cost...
Results 1 to 5 of 5