Little string help please !!

Hi,

How can i take a string lets say "sentence" and a word wordOne and an other word wordTwo. And replace within sentence wordOne by wordTwo without using the function

sentence.replace(wordOne, wordTwo);

Is it possible to maybe chop off the string into diffewrent part match the word and swap it then reconstruct the string and display.

Thanks

JD

[386 byte] By [jingseea] at [2007-10-2 1:58:49]
# 1
Please stick to one thread. http://forum.java.sun.com/thread.jspa?threadID=671117
jverda at 2007-7-15 19:39:57 > top of Java-index,Java Essentials,New To Java...