Article View: borland.public.jbuilder.java.language
Article #8716Re: Declaring an Array of Strings?
From: Dave Bird
Date: Thu, 08 Mar 2001 22:07
Date: Thu, 08 Mar 2001 22:07
26 lines
1744 bytes
1744 bytes
In article <3aa7d567$1_2@dnews>, Thomas682 <SchwendnerThomas@Compuserve.
com> writes
>hi,
>
>thanks for your answer - but i donοΏ½t know the
>size of the array !
>
>dynamic array resizeing ?
>(like VC++ or VB)
>
>MFG
>Thomas
Better, the space is allocated dynamically at runtime,
so is always (potentially) variable.
doSomthing(int size){
String anArray[] = new String[size];
works just fine.
--
^-^-^-@@-^-;-^ http://www.xemu.demon.co.uk/
(..)__u news:alt.smoking.mooses
Technical Details
Message-ID:
<lGO7E6EzKAq6EwEA@xemu.demon.co.uk>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!zeus.visi.com!hermes.visi.com!news-out.visi.com!hub.org!hub.org!nntp1.njy.teleglobe.net!teleglobe.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!xemu.demon.co.uk!daveReferences:
<3aa6df5f$1_2@dnews> <uu254bq17.fsf@sds.no> <3aa7a736_2@dnews> <3AA7C6C2.8F36FA7F@borland.com> <3aa7d567$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,9324d780b1c839d2 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-03-08 16:56:11 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!zeus.visi.com!hermes.visi.com!news-out.visi.com!hub.org!hub.org!nntp1.njy.teleglobe.net!teleglobe.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!xemu.demon.co.uk!dave From: Dave Bird <dave@xemu.demon.co.uk> Newsgroups: borland.public.jbuilder.java.language Subject: Re: Declaring an Array of Strings? Date: Thu, 8 Mar 2001 22:07:47 +0000 Organization: none Message-ID: <lGO7E6EzKAq6EwEA@xemu.demon.co.uk> References: <3aa6df5f$1_2@dnews> <uu254bq17.fsf@sds.no> <3aa7a736_2@dnews> <3AA7C6C2.8F36FA7F@borland.com> <3aa7d567$1_2@dnews> NNTP-Posting-Host: xemu.demon.co.uk X-NNTP-Posting-Host: xemu.demon.co.uk:158.152.196.209 X-Trace: news.demon.co.uk 984099145 nnrp-01:14495 NO-IDENT xemu.demon.co.uk:158.152.196.209 X-Complaints-To: abuse@demon.net MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Turnpike Integrated Version 5.00 U <dQumtnY$x4rJ2u5tL5fS$n2vuP> Lines: 26