File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "StringTokenizer" Watch "StringTokenizer" New topic


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.
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:
[ February 06, 2002: Message edited by: Steve Deadsea ]
I agree. Here's the link:
subject: StringTokenizer
It's not a secret anymore!