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.

Java Java Data Structures Exploring the Java Collection Framework Using ArrayLists

Christopher Mlalazi
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Christopher Mlalazi
Front End Web Development Techdegree Graduate 17,305 Points

I 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:

https://w.trhou.se/wtjpflf8mz

Thanks in advance

4 Answers

Terry McKee
Terry McKee
27,299 Points

You 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
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Chris Jones
Java Web Development Techdegree Graduate 23,921 Points

Get 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.