public class MyClass { public static void main(String[] args) { String myStr = "Hello"; System.out.println(myStr.replace('l', 'p')); } }