Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Stringtokenizer

Reply
Thread Tools

Stringtokenizer

 
 
Troy Troy is offline
Junior Member
Join Date: Feb 2008
Posts: 2
 
      02-16-2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
StringTokenizer insert into Array?? Newbie Java 4 12-07-2003 06:19 PM
StringTokenizer Question? Jim Crowell Java 9 08-23-2003 06:28 PM
Read data with delimater using stringtokenizer Liang Yew Java 3 07-21-2003 07:10 AM
StringTokenizer help ARMANDO PADILLA Java 3 07-04-2003 04:37 PM
Re: StringTokenizer Help Phil Hanna Java 0 06-30-2003 11:57 PM



Advertisments