Results 1 to 2 of 2

Thread: String array.

  1. #1
    zarak is offline Member
    Join Date
    Oct 2011
    Rep Power

    Default String array.

    Is there any method or function which I can use to store separate lines of a string in an array of strings? Maybe a string separator or something.
    For example, if I have a file which has 5 lines in it, it should save the five lines separately in separate strings.

    These are the lines that I want to store separately in separate strings.

    <form method="post" action="/search-advanced.php">
    Title:<input type="text" name="titlesearch" value="" /></br>
    Sub-title:<input type="text" name="subtitle" value=""/></br>
    Author:<input type="text" name="authorname" value=""/></br>
    Notes:<input type="text" name="notes" value="" /></br>
    Year:<input type="text" name="pub_date" value="" /></br>
    to: <input type="text" name="pub_date_end" value=""/></br>
    Language:<select name="language">
    <option value="" selected="selected">All</option>
    <option value="af">Afrikaans</option>
    <option value="arp">Arapaho</option>

  2. #2
    mwr1976 is offline Senior Member
    Join Date
    Oct 2011
    Rep Power

    Default Re: String array.

    Create a class where the constructor takes two strings as arguments. Then create an array of that type.

Similar Threads

  1. Replies: 1
    Last Post: 02-07-2011, 08:22 PM
  2. Changing a String array into a String?
    By BennyJass in forum New To Java
    Replies: 6
    Last Post: 01-16-2011, 02:42 PM
  3. create a 2d char array from a 1D string array
    By jschmall12 in forum New To Java
    Replies: 1
    Last Post: 04-27-2010, 09:01 PM
  4. Convert Char Array to String Array
    By Mayur in forum New To Java
    Replies: 8
    Last Post: 10-12-2009, 11:41 AM
  5. Replies: 1
    Last Post: 08-03-2007, 10:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts