Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-06-2007, 05:26 AM
Senior Member
 
Join Date: Jun 2007
Posts: 111
Eric is on a distinguished road
String Variable
I have the following problem, where work handles the data of Web services of the following way

Code:
String v[]= new String [100];
it receives data of this way and it dispatches data of the same way,but you know that I cannot always leave this array with a static size, my doubt is how I can handle arrays with variable size?

Eric
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-06-2007, 05:30 AM
Member
 
Join Date: Jun 2007
Posts: 92
Marcus is on a distinguished road
RE: String Variable
You have to consult to the data base, save everything in arraylist and later to turn from arraylist to an Array of strings, here is the example:

Code:
ArrayList al = new ArrayList(); String[] v = (String[])al.toArray(new String[1]);
Marcus
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to Parse int to a string variable raj reddy Java Servlet 4 06-27-2008 12:58 PM
how to Parse int to a string variable (pls hlp) raj reddy Threads and Synchronization 5 06-10-2008 07:32 AM
make a variable name from a string? Kinnikinnick New To Java 3 11-13-2007 04:54 PM
Help with variable assigment to String silvia New To Java 1 08-07-2007 06:43 AM
I can't seem to pass the value of a string variable into a string array mathias Java Applets 1 08-03-2007 11:52 AM


All times are GMT +3. The time now is 09:21 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org