Originally posted by Victoria Preston:
but there inlies the problem. there is not a set amount of elements. i am going to be adding things to this array so I cannot just make a aarray of a certain size.....or can I
Then you have two options... You can do two passes. The first pass to find out the size of the array, and the second pass to populate it... or you can just add everything to a container, like an ArrayList. And then call the container's toArray() method to get an array.
Henry
[ February 03, 2006: Message edited by: Henry Wong ]