🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8696

Declaring an Array of Strings?

#8696
From: Harry Whitehouse
Date: Thu, 08 Mar 2001 01:25
14 lines
1166 bytes
Hmmmm... This should be simple, but I get compiler errors:

 String AddressLine[];

 for(int i=0;i<7;i++)
         AddressLine[i]= new String;               // line 208

"Applet.java": Error #: 201 : '(' or '[' expected at line 208, column 36

Can anyone clue me on this one?

TIA

Harry
Technical Details
Message-ID: <3aa6df5f$1_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!38.168.115.135

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,9324d780b1c839d2,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-07 17:30:07 PST
From: "Harry Whitehouse" <harry@envmgr.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: Declaring an Array of Strings?
Date: Wed, 7 Mar 2001 17:25:17 -0800
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 38.168.115.135
Message-ID: <3aa6df5f$1_2@dnews>
X-Trace: 7 Mar 2001 17:24:47 -0800, 38.168.115.135
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!38.168.115.135