[1490] in java-interest

home help back first fref pref prev next nref lref last post

Re: dynamic lists

daemon@ATHENA.MIT.EDU (Robert Uomini)
Wed Sep 6 02:45:48 1995

Date: Tue, 5 Sep 1995 20:00:50 -0700
From: uomini@fractals.fractals.com (Robert Uomini)
To: java-interest@java.Eng.Sun.COM, vin@mufasa.Eng.Sun.COM


> From daemon@java.sun.com Tue Sep  5 19:13 PDT 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
> Subject: dynamic lists
> X-Info: To unsubscribe, send 'unsubscribe' to java-interest-request@java.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
> 
Check out the Vector object.

Robert Uomini
The Fractal Images Company (http://www.fractals.com)
Voice: 510-528-0258/800-548-0258
Fax:   510-528-0243
*******************************************************************************
*  Buying or selling a home? Come visit the most comprehensive set of	      *
*  residential real estate listings and related services on the Internet:     *
*  The FractalNet Real Estate Server, http://www.fractals.com/realestate.html *
*******************************************************************************

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post