Stringtokenizer

Joined
Feb 16, 2008
Messages
2
Reaction score
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top