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!

ArrayList is a raw type. References to generic type ArrayList<E> should be

843789Sep 19 2009 — edited Sep 19 2009
I have been working with Java for about a week. I first created a class and a few objects. I then created a class which provided an ArrayList of these objects with a few methods of my own. All of this code compiled without errors or warnings.

I then realized that I had an ever increasing set of methods which just called the ArrayList methods. I changed my ArrayList class to one that extends ArrayList. I now only have three of my own methods and the ArrayList methods are all immediately available. It all functions correctly, but why do I get the above message and how do I get rid of it?

Help please!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 17 2009
Added on Sep 19 2009
4 comments
4,870 views