Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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.