Hi devin I guess you will have to write a small piece of code which will split the string depending on the number of spaces and concatenate the seperate strings together. You will have to use the String.substring() and String.indexOf() in a loop and generate a new string. Try it out. This is one way to do it. If there is any other way do please let me know if you come across it.
Life called,so here I am.<br />Cheers<br />Niki.:-)
I guess you will have to write a small piece of code
No, he can use the replaceAll() method as he plans. He just needs to get his syntax correct.
Joined: Apr 12, 2005
Thanks all for the help, I was just coming back here to mention that I had discovered the String.replaceAll() method and got it working.
Bear: yes, I knew that - what I didn't know is that '' isn't accepted as a character!
Niki: I think your method would be good excercise on using String.substring() and String.indexOf() - so i might try it that way even though the String.replaceAll() is much easier. [ April 13, 2005: Message edited by: Devin Fleenor ]