This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
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
Similar Threads
print a barcode from JSP
string equals question
JNDI with Tomcat
Regarding remove word in a string