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.

John Paige
7,436 PointsKaraokeMachine.java- I could use some help!
I'm having quite a bit of trouble figuring out the issue... a typo or maybe a messed up scope? I'd appreciate any insight.
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
./com/teamtreehouse/KaraokeMachine.java:55: error: cannot find symbol
Song artistSong = promptSongForArtist(artist);
^
symbol: method promptSongForArtist(String)
location: class KaraokeMachine
./com/teamtreehouse/KaraokeMachine.java:88: error: cannot find symbol
return artist.get(index);
^
symbol: variable artist
location: class KaraokeMachine
2 errors
1 Answer

Steve Hunter
57,682 PointsHi John,
Symbol errors mean that your method is called something else or is invisible at that point in the code. Post your code and I'll have a look!
Steve.
Steve Hunter
57,682 PointsSteve Hunter
57,682 PointsSorry - just saw your snapshot! I'm on it ...
Steve Hunter
57,682 PointsSteve Hunter
57,682 PointsYou've not got a method called
promptSongForArtist
? Do you meanpromptForArtist
?John Paige
7,436 PointsJohn Paige
7,436 PointsSorry I ended up figuring out what was wrong w my code earlier. One of the mistakes was what you pointed out- i had typed
promptForArtist
instead ofpromptSongForArtist
. I had also corrected line 88 where it saysreturn artist.get(index);
i changed toreturn artists.get(index);
.Thanks for the response tho! I was stumped until i came across someone's screenshot and saw those two mistakes.
Steve Hunter
57,682 PointsSteve Hunter
57,682 PointsGlad you got it sorted.