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 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?