Article View: borland.public.jbuilder.java.language
Article #15005String[] {"adding", "to", "a" "string", "array"}
From: Alex B. Humphreys
Date: Fri, 23 Jul 1999 00:00
Date: Fri, 23 Jul 1999 00:00
7 lines
847 bytes
847 bytes
I'm trying to create a String[] of Strings on the fly in a loop (I don't know how many items there'll be). I can't figure out how to do this -- String [] doesn't seem to have a add(String) method, and concat and anything else I can think of doesn't seem to work. How can I append a String to a String[]? Thanks, Alex
Technical Details
Message-ID:
<37987F9B.9EF363E4@sema4.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,6cf9adb752902fc9,start
X-Google-Attributes: gidf74b3,public
From: "Alex B. Humphreys" <ahumphreys@sema4.com>
Subject: String[] {"adding", "to", "a" "string", "array"}
Date: 1999/07/23
Message-ID: <37987F9B.9EF363E4@sema4.com>
X-Deja-AN: 504419723
Content-Transfer-Encoding: 7bit
Organization: Semaphore, Inc.
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language