Search:

Type: Posts; User: GoodbyeWorld

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    3,031

    Re: Making a change dispenser!

    Not sure why your ChangeDispenser class has a main method (a blank one in fact). It doesn't really need it. Your ChangeDispenserDriver has one and that appears to be the one you're using.



    ...
  2. Replies
    4
    Views
    3,031

    Re: Making a change dispenser!

    if (penniesLeft <= 0) {
    pennyRollsAdded = pennyRollsAdded++;
    }


    that can be reduced to

    if (penniesLeft <=0)
    {
    pennyRollsAdded++;
Results 1 to 2 of 2