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 trialChristopher Mlalazi
Front End Web Development Techdegree Graduate 17,305 PointsI have one error can't sort it out
My workspace is saying I have one error and I can't figure out what is causing it. It's in line 65
./com/teamtreehouse/Treet.java:65: error: cannot find symbol
List<String> results = new ArrrayList<String>();
^
symbol: class ArrrayList
location: class Treet
1 error
and here is my workspace with my code:
Thanks in advance
4 Answers
Terry McKee
27,299 PointsYou have an extra 'r' in ArrayList. Just remove one of the r's and you should be good to go.
List<String> results = new ArrrayList<String>();
should be
List<String> results = new ArrayList<String>();
Chris Jones
Java Web Development Techdegree Graduate 23,933 PointsGet ready to slap yourself on the forehead....there are only two r's in ArrayList, not three:).
I didn't realize it until I had gone through all your code lol.
Christopher Mlalazi
Front End Web Development Techdegree Graduate 17,305 PointsWow how did I miss that! Thanks Chris and Terry! I feel silly now cause I checked and checked spellings!
Chris Jones
Java Web Development Techdegree Graduate 23,933 PointsNo problem, we've all done it! This is why IDEs were invented, right:)?
Christopher Mlalazi
Front End Web Development Techdegree Graduate 17,305 PointsYou were a minute apart in answering so will give Terry best answer although i would have wished Treehouse allowed several!
Chris Jones
Java Web Development Techdegree Graduate 23,933 PointsNo offense taken:)