In
Java String is immutable - meaning not modifiable. You may modify the String reference and store a new string there.
Ex:
Modify StringReplace() as give below..
public static String StringReplace(String t)
{
t=t.replace("j","i"); //It should have replaced "j" from "java" with an "i"
return t;
}
and
in main() as given below
s = StringReplace(s); //what happens over here?
This would give you desired result.