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.

Volodymyr Rozdolsky
3,732 PointsStuck here. Can't continue. Compiler error.
./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

Steve Hunter
57,682 PointsHi 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
3,732 PointsHey
Ohhh... yes thank you very much. fat fingers :).
In Game.java it saying cannot find symbol.

Steve Hunter
57,682 PointsI'll check your code - give me a minute.

Volodymyr Rozdolsky
3,732 Pointso yeh I see what you saying

Steve Hunter
57,682 PointsYes - change message
to misses
.

Volodymyr Rozdolsky
3,732 PointsThanks you for looking into.

Steve Hunter
57,682 PointsNo problem. All sorted now?

Volodymyr Rozdolsky
3,732 PointsYes, It's all working now.