Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

"cannot find symbol" when making an Arraylist

807601Feb 2 2008 — edited Feb 2 2008
My code is kinda long an complex, but I continuously get a "cannot find symbol" error wherever I declare or instantiate an Arraylist.
import java.util.ArrayList;

...

java.util.Arraylist myList;

...

myList = new java.util.Arraylist();
Have I imported, declared, and instantiated it correctly? I tacked on "java.util" because I thought it might be a namespace issue, but the errors are still there.

Thank you for your help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 1 2008
Added on Feb 2 2008
9 comments
3,250 views