[1473] in java-interest
dynamic lists
daemon@ATHENA.MIT.EDU (Vin Locke [CONTRACTOR])
Tue Sep 5 18:52:32 1995
Date: Tue, 5 Sep 1995 09:14:20 -0700
From: vin@mufasa.Eng.Sun.COM (Vin Locke [CONTRACTOR])
To: java-interest@java.Eng.Sun.COM
I am trying to implement something on the level of a linked list of
indeterminate length in java. From reading the docs and hearing a few
talks, it seems that the Array is the data structure for this.
But doesn't the array need a size at time of creation?
Is there a way to "grow" an array (sort of a realloc)?
I want to go along collecting Strings and adding them to a list of some
kind: I won't know how many elements will be in the list till I'm done
collecting.
Once I figure this out, I'll be passing the contents of this list back
from a native method that does a database lookup to retrieve the
data, then turn it into Strings: java will then do the
display stuff.
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com