Have a counter variable that keeps track of the current index, iterate and find some new junk.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
You can use the String classes replaceAll method. Here is an example:
String str = "Hello blank";
String newStr = str.replaceAll("blank", "Jim") ;
System.out.println(newStr); //prints "Hello Jim"
For more help, www.NeedProgrammingHelp.com
NPH
Junior Poster in Training
55 posts since May 2005
Reputation Points: 10
Solved Threads: 1