Stringtokenizer

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

  1. Troy

    Troy

    Joined:
    Feb 16, 2008
    Messages:
    2
    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. Advertising

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. Phil Hanna

    Re: StringTokenizer Help

    Phil Hanna, Jul 1, 2003, in forum: Java
    Replies:
    0
    Views:
    873
    Phil Hanna
    Jul 1, 2003
  2. ARMANDO  PADILLA

    StringTokenizer help

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

    StringTokenizer Question?

    Jim Crowell, Aug 20, 2003, in forum: Java
    Replies:
    9
    Views:
    3,770
    Roedy Green
    Aug 23, 2003
  5. Newbie
    Replies:
    4
    Views:
    1,463
    Stefan Siegl
    Dec 7, 2003
Loading...

Share This Page