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

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

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>();

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.

Wow how did I miss that! Thanks Chris and Terry! I feel silly now cause I checked and checked spellings!

No problem, we've all done it! This is why IDEs were invented, right:)?

You were a minute apart in answering so will give Terry best answer although i would have wished Treehouse allowed several!

No offense taken:)