Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Java Objects Creating the MVP Prompting for Guesses

Kyle Whitmore
Kyle Whitmore
4,999 Points

Issues with isHIt boolean.

I'm getting two errors with this boolean: cannot find symbol and illegal start of type. I've tracked this boolean throughout all three files and cannot figure out why it is giving me problems. My braces line up and there are no typos as far as I can tell. If someone could help me out that would be great.

Also, in the applyGuess boolean in the game file, is it the return isHit that makes the applyGuess boolean true or false?

https://w.trhou.se/bsm1hkkwrx

2 Answers

Hi Kyle,

You have a typo in class Hangman on line 8. The letter 'i' should be lower case. Change isHIt to isHit and you should be fine.

Kyle Whitmore
Kyle Whitmore
4,999 Points

Didn't even notice that. Thanks man.

Hi Kyle,

It would help if you can post your code.