Skip to content

A mistake of HasQuarterState.java in gumballstate and gumballstatewinner #34

Description

@newryu

state\gumball\GumballMachine.java
Line 75: "No gumball dispensed" should be "You need to turn the crank"

state\gumballstate\HasQuarterState.java
Line 27: "No gumball dispensed" should be "You need to turn the crank"

state\gumballstatewinner\HasQuarterState.java
Line 33: "No gumball dispensed" should be "You need to turn the crank"

Just check Page 387 in the book, the dispense method when state is HAS_QUARTER

else if (state == HAS_QUARTER) {System.out.println("You need to turn the crank");}

the following warning messages of dispense method when the state is HAS_QUARTER in Chapter 10 need to be the same.

So the message "No gumball dispensed" of HAS_QUARTER state on Page 400, Page 410, Page 422 should be "You need to turn the crank".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions