//PROGRAM 11-31 class DemoReplace1 { public static void main(String[] args) { StringBuffer sb = new StringBuffer("Java"); sb.replace(1, 2, "o"); sb.replace(2, 3, "w"); sb.replace(3, 4, "o"); System.out.println(sb.toString()); } }