Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bethrobson committed Aug 31, 2020
1 parent 4f78ed1 commit 4a072f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public ImageProxyTestDrive() throws Exception {
albums.put("Buddha Bar","http://images.amazon.com/images/P/B00009XBYK.01.LZZZZZZZ.jpg");
albums.put("Ima","http://images.amazon.com/images/P/B000005IRM.01.LZZZZZZZ.jpg");
albums.put("Karma","http://images.amazon.com/images/P/B000005DCB.01.LZZZZZZZ.gif");
albums.put("MCMXC A.D.","http://images.amazon.com/images/P/B000002URV.01.LZZZZZZZ.jpg");
albums.put("MCMXC a.D.","http://images.amazon.com/images/P/B000002URV.01.LZZZZZZZ.jpg");
albums.put("Northern Exposure","http://images.amazon.com/images/P/B000003SFN.01.LZZZZZZZ.jpg");
albums.put("Selected Ambient Works, Vol. 2","http://images.amazon.com/images/P/B000002MNZ.01.LZZZZZZZ.jpg");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void turnCrank() {

void releaseBall() {
System.out.println("A gumball comes rolling out the slot...");
if (count != 0) {
if (count > 0) {
count = count - 1;
}
}
Expand All @@ -50,7 +50,7 @@ int getCount() {

void refill(int count) {
this.count += count;
System.out.println("The gumball machine was just refilled; it's new count is: " + this.count);
System.out.println("The gumball machine was just refilled; its new count is: " + this.count);
state.refill();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void setState(State state) {

void releaseBall() {
System.out.println("A gumball comes rolling out the slot...");
if (count != 0) {
if (count > 0) {
count = count - 1;
}
}
Expand All @@ -54,7 +54,7 @@ int getCount() {

void refill(int count) {
this.count += count;
System.out.println("The gumball machine was just refilled; it's new count is: " + this.count);
System.out.println("The gumball machine was just refilled; its new count is: " + this.count);
state.refill();
}

Expand Down

0 comments on commit 4a072f3

Please sign in to comment.