aspose file tools*
The moose likes Java in General and the fly likes StringTokenizer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "StringTokenizer" Watch "StringTokenizer" New topic
Author

StringTokenizer

kevin schmidt
Ranch Hand

Joined: Aug 24, 2001
Posts: 85
Hey there, I'm working with strings and I need to tokenize the inputed string. I then need to replace a token with some other word and than return the full string back. Does anyone have any suggestions.
Kevin
Lewin Chan
Ranch Hand

Joined: Oct 10, 2001
Posts: 214
Have you tried something like

Of course, I'm not sure whether that code works or not


I have no java certifications. This makes me a bad programmer. Ignore my post.
Steve Deadsea
Ranch Hand

Joined: Dec 03, 2001
Posts: 125
I wrote a replace function that you could use. Its in my StringHelper class:
http://ostermiller.org/utils/StringHelper.html
[ February 06, 2002: Message edited by: Steve Deadsea ]
 
 
subject: StringTokenizer