There are questions about the ArrayList

Category: Java SE
2010-11-22 06:45:17

Sponsored Links
ArrayList numList = new ArrayList ();
int i = 1
numList.add (iTemp);
will complain
Error #: ; 300: method add (int) not found in class java.util.ArrayList

Sponsored Links

2010-11-22 06:56:05
numList.add (new Integer (i ));
2010-11-22 07:04:49
basic types of data can not be directly added to it
should be:
ArrayList numList = new ArrayList ();
int i = 10;
numList.add (new Integer (i));
so you can not go wrong pulling;
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.