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 trialVolodymyr 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,712 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,712 PointsI'll check your code - give me a minute.
Volodymyr Rozdolsky
3,732 Pointso yeh I see what you saying
Steve Hunter
57,712 PointsYes - change message
to misses
.
Volodymyr Rozdolsky
3,732 PointsThanks you for looking into.
Steve Hunter
57,712 PointsNo problem. All sorted now?
Volodymyr Rozdolsky
3,732 PointsYes, It's all working now.