🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #682

Re: dynamic arrays

#682
From: fungus
Date: Thu, 18 May 2000 00:00
25 lines
1656 bytes

someguy wrote:
> 
> i am having some difficulties with using undefined array lengths can anyone
> help?
> 
> The problem is when u declare an array u can only setits size once, however
> i need to make the array grow larger at certain times.  I have thought of
> various ways of doing this in methods but itbecame difficult handling the
> variables due to scope issue.  So i gueess is there such a thing in java as
> a linked list where at any point i can add or insert an element into the
> list dynamically? or do you have any other suggestions?
> 

Yes, look for java.util.Vector

If you're using Java2, you've also got other options
to choose from, including java.util.LinkedList.


-- 
<\___/>
/ O O \
\_____/  FTB.
Technical Details
Message-ID: <392456D9.6FB6C71D@egg.chips.and.spam.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <958656104.72811@brs.ihug.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113ae9,2738036dde0b002c
X-Google-Attributes: gid113ae9,public
X-Google-Thread: fdb77,2738036dde0b002c
X-Google-Attributes: gidfdb77,public
X-Google-Thread: 10d6db,2738036dde0b002c
X-Google-Attributes: gid10d6db,public
From: fungus <spam@egg.chips.and.spam.com>
Subject: Re: dynamic arrays
Date: 2000/05/18
Message-ID: <392456D9.6FB6C71D@egg.chips.and.spam.com>
X-Deja-AN: 625137159
Content-Transfer-Encoding: 7bit
References: <958656104.72811@brs.ihug.com.au>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@teleline.es
X-Trace: telenews.teleline.es 958682852 213.0.67.223 (Thu, 18 May 2000 22:47:32 MET DST)
Organization: Clientes_Teleline
MIME-Version: 1.0
NNTP-Posting-Date: Thu, 18 May 2000 22:47:32 MET DST
Newsgroups: aus.computers.java,comp.lang.java.advocacy,comp.lang.java.help