arrayList <E>

If this has been asked and answered I apologize. I tried searching for an answer and couldn't locate one. I am updating an old application switching from vector to arrayList. Much cleaner code. I now get the following warnings and can't figure out how to correct them. I used the -Xlint parm to get the details:

PortfolioManager.java:74: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List

arrayListPortfolios.add(portfolio);

I know I need to add something to the code, but I can't figure out what it should be. TIA

[580 byte] By [Calgariana] at [2007-10-2 20:18:55]
# 1

> If this has been asked and answered I apologize. I

> tried searching for an answer

http://onesearch.sun.com/search/onesearch/index.jsp?qt=warning%3A+%5Bunchecked%5D+unchecked+call+&subCat=siteforumid%3Ajava54&site=dev&dftab=siteforumid%3Ajava54&chooseCat=javaall&col=developer-forums

CeciNEstPasUnProgrammeura at 2007-7-13 23:01:12 > top of Java-index,Java Essentials,New To Java...
# 2
You need to declare your arraylist with some type.// emulate pre-1.5 listArrayList<Object> myList = new ArrayList<Object>();or// using 1.5 generics properlyArrayList<YourTypeHere> ...
BaltimoreJohna at 2007-7-13 23:01:12 > top of Java-index,Java Essentials,New To Java...
# 3
Thanks guys - solved my problem and taught me about how to refine my searches.
Calgariana at 2007-7-13 23:01:12 > top of Java-index,Java Essentials,New To Java...