The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000



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.


java - string arrays

Posted by srividhya on April 12, 2001 at 12:50 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).

  • problem buchi February 24, 2002 at 1:55 AM (1)
    • Problem Matt Gerrans February 24, 2002 at 11:24 PM (0)

Sponsored Links

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