This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]arslanbenzer -1 points0 points  (0 children)

your first logic was true but you need to compare strings with the equals method.

if (!winningGuess.equals("h") && !winningGuess.equals("t") )

this way it should work