Article View: borland.public.jbuilder.java.language
Article #18891Trouble with string arrays
From: Jacques Chaurette
Date: Thu, 02 Apr 1998 00:00
Date: Thu, 02 Apr 1998 00:00
19 lines
1007 bytes
1007 bytes
Hi folks,
I've declared a string array in the beginning of my program with
String[] sData;
when I try to input values into this array in a later portion with
sData = {"...", "mmm"};
I get an error that says illegal start of expression?
What's wrong?
I can fix it by changing the line to:
String[] sData = {"...", "mmm"};
but then it doesn't recognize the initial declaration. This is a problem
because I also need to initialize the initial sData declaration value.
other question:
is there a string array object constructor?
Thanks a bunch
Jacques
Technical Details
Message-ID:
<6g1np8$bgt1@forums.borland.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,adedeeaeecd4c042,start X-Google-Attributes: gidf74b3,public From: "Jacques Chaurette" <jacobie@cam.org> Subject: Trouble with string arrays Date: 1998/04/02 Message-ID: <6g1np8$bgt1@forums.borland.com> X-Deja-AN: 340411659 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Organization: Fluide Design Inc. Newsgroups: borland.public.jbuilder.java.language