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 - Retired 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,933 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.