"String".replace [1]
文字列を指定して置き換えます。指定文字は1文字でも構いません。
String s1 = "Java and Python."; System.out.println(s1.replace("J", "hoge"));