Package zpxx;
Public class replace {
Public String RCE (String Parentstr, String Ch, String Rep)
{
INT I = Parentstr.indexof (CH);
StringBuffer SB = new stringbuffer ();
IF (i == -1) {
Return ParentsTr;
}
Sb.append (PARENTSTR.SUBSTRING (0, I) Rep);
IF (i ch.Length ()
Sb.append (RCE (PARENTSTR.SUBSTRING (i ch.length (), parentstr.length ()), ch, rep));
}
Return sb.toString ();
}
}