On expanding arrays...

Maarten van Leunen wrote:
> 
> Is there a way to expand arrays. Like, I want to put a unknown number of
> strings in an array.
> 
> And then "return" the array of Strings in the Method.
> 
> I read one string, and wish to add it to the array without having to
> define the amount of Strings in the array previously.

Without declaring a new_one that is (old_one.length + 1) long and copying the
the entire old_one array into the new_one, then adding the new_string, I don't
think so.  Is this someting you can't use a Vector for?

--Jeff

P.S. Introductions:  Howdy!  Jeff, lurker, but very interested in seeing what
kind of work there is to be done.

Reply via email to