View Single Post
Old Nov 30th, 2005, 10:57 PM   #7
andro
Professional Programmer
 
Join Date: Oct 2005
Location: California
Posts: 311
Rep Power: 3 andro is on a distinguished road
Send a message via AIM to andro
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
andro is offline   Reply With Quote