Java Java Objects Creating the MVP Prompting for Guesses

Lucas Easley
Lucas Easley
691 Points

Hangman.java:7: error: cannot find symbol

This is my error and I have searched my code for discrepancies between the video code and mine and I cannot find where the problem is. Please help.

Hangman.java:7: error: cannot find symbol
boolean isHit = prompter.promptForGuess();
^
symbol: method promptForGuess()
location: variable prompter of type Prompter
1 error

https://w.trhou.se/ckqknwc58d

1 Answer

Steven Parker
Steven Parker
203,214 Points

In the snapshot on line 10 of "Prompter.java", there is a method definition for "proptForGuess", but it should be "pro‍m‍ptForGuess" (with an "m").