ArrayList is a raw type. References to generic type ArrayList<E> should be
843789Sep 19 2009 — edited Sep 19 2009I 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!