Results 1 to 2 of 2
  1. #1
    rajchief is offline Member
    Join Date
    Aug 2008
    Posts
    1
    Rep Power
    0

    Default Store String Tokenizer o/p onto an array

    Hi,

    I have used string tokenizer to separate a comma delimited string.....now I want to store the output of the String tokenizer onto an array.

    Can you please suggest how i should go about it.

    Your feedback would be appreciated.

    Thanks,
    Rajesh

  2. #2
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    use the split function, passing in a "," and it will do what you want.
    Read the javadocs for the String class

Similar Threads

  1. Can I store multiple objects in an array
    By lareauk in forum New To Java
    Replies: 9
    Last Post: 05-29-2008, 04:57 AM
  2. question on string tokenizer
    By munigantipraveen in forum New To Java
    Replies: 2
    Last Post: 05-23-2008, 06:00 AM
  3. Replies: 3
    Last Post: 04-07-2008, 07:02 PM
  4. questions about using array to store profile
    By hien_NU in forum New To Java
    Replies: 6
    Last Post: 01-08-2008, 06:03 AM
  5. I would then store a string...
    By susan in forum AWT / Swing
    Replies: 1
    Last Post: 08-07-2007, 05:15 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
  •