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 Data Structures Efficiency! Queueing

Queueing problems with getting code to work!

So I'm following along and I can't get my code to work. I believe that my code matches Craig's, but i can't get it to compile. Can someone look my code over and tell me why i keep getting this error? ./com/teamtreehouse/KaraokeMachine.java:95: error: cannot find symbol
List<String> artists = new ArrayList<>(mSongBooks.getArtists());
^
symbol: variable mSongBooks
location: class KaraokeMachine
1 error

https://w.trhou.se/z3qchh2q5m

any help would be much appreciated!

1 Answer

Doli Harahap
Doli Harahap
6,246 Points

Your variable of "mSongBooks" contains "s".

fixed it! (mSongBook.getArtist()); sorry for the silly question, i must have been really tired. lol Thank you for your help!