Java tutorial
/* * Output: * hello there world! * */ public class MainClass { public static void main(String args[]) { StringBuffer sb = new StringBuffer("hello world!"); sb.insert(6, "there "); System.out.println(sb); } }