The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

string arrays

Posted by nimmy on December 22, 2000 at 6:01 AM

i stored values that i got from the form in a string array,and later used those elements.
during this process, i got error saying string initialisation is requred, so i initialised as following,
String[] s={"","",""};
now my question is how can i initialize the string array if its length is known only at runtime(that is its length is more than 3).



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us