Stringtokenizer

Discussion in 'Java' started by Troy, Feb 16, 2008.

  1. Troy

    Troy

    Joined:
    Feb 16, 2008
    Messages:
    2
    Likes Received:
    0
    If i want to read more than one line into a token do i have to do a for loop
    e.g

    i want this to be reproduce by the stringtokenizer

    My name is Troy.
    And your age is 33.

    but i dont want to do
    .
    .
    .
    .
    Stringtokenizer test = new StringTokenizer();
    test.st = new StringTokenizer("My name is Troy");
    etc
    i want to do a loop or something that i can reproduce the whole
    thing without create and st, st1, st2 etc
     
    Troy, Feb 16, 2008
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ARMANDO  PADILLA

    StringTokenizer help

    ARMANDO PADILLA, Jul 4, 2003, in forum: Java
    Replies:
    3
    Views:
    793
    Chris Smith
    Jul 4, 2003
  2. Liang Yew
    Replies:
    3
    Views:
    776
    Jacob
    Jul 21, 2003
  3. Jim Crowell

    StringTokenizer Question?

    Jim Crowell, Aug 20, 2003, in forum: Java
    Replies:
    9
    Views:
    4,088
    Roedy Green
    Aug 23, 2003
  4. Newbie
    Replies:
    4
    Views:
    1,667
    Stefan Siegl
    Dec 7, 2003
  5. wnstnsmith@yahoo.com

    stringtokenizer that traps ASCII linebreaks

    wnstnsmith@yahoo.com, Feb 11, 2004, in forum: Java
    Replies:
    2
    Views:
    701
    wnstnsmith@yahoo.com
    Feb 11, 2004
  6. schneider jp

    StringTokenizer Class

    schneider jp, Apr 8, 2004, in forum: Java
    Replies:
    1
    Views:
    433
    Gordon Beaton
    Apr 8, 2004
  7. Bart_D
    Replies:
    6
    Views:
    2,055
    Roedy Green
    May 6, 2004
  8. Juggernaut

    Stringtokenizer and file reading

    Juggernaut, May 7, 2004, in forum: Java
    Replies:
    9
    Views:
    11,321
Loading...