Quote:
|
Originally Posted by titaniumdecoy
You can't resize arrays in Java.
I was wondering, though, is there any way to store a basic data type such an int or double in a ListArray or any other type of array/list rathern than an Integer or Double object?
|
Make sure to import java.util.ArrayList.
ArrayList<Integer> myList = new ArrayList<Integer>();
and the ArrayList api...
http://java.sun.com/j2se/1.5.0/docs/...ArrayList.html