Java tutorial
public class Main { public static void main(String[] args) { String oldStr = new String("tooth"); String newStr = oldStr.replace('o', 'e'); System.out.println(newStr); } }