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 Delivering the MVP Validating and Normalizing User Input

Volodymyr Rozdolsky
Volodymyr Rozdolsky
3,732 Points

Stuck here. Can't continue. Compiler error.

https://w.trhou.se/655bgb9vka

./Game.java:14: error: cannot find symbol if(message.indexOf(letter) !=-1 || hits.indexOf(letter) !=-1){

symbol variable message location: class Game

./Prompter.java:19 erro: cannot fiend symbol System.out.println(Ian.getMessege());

symbol: variable Ian location class Propmter

5 Answers

Hi there,

In Game.java it is saying message doesn't exist. Do you mean misses?

And in Prompter.java you've declared the error to be iae then tried to access it with ian. Change that to iae and that error will disappear.

[EDIT]Yes, those two changes make your code work.

Steve.

Volodymyr Rozdolsky
Volodymyr Rozdolsky
3,732 Points

Hey Ohhh... yes thank you very much. fat fingers :).
In Game.java it saying cannot find symbol.

I'll check your code - give me a minute.

Yes - change message to misses. :+1:

No problem. All sorted now?