8.8.7.StringBuffer insert(int offset, String str) Inserts str into the current string buffer at position offset.
public class MainClass{ public static void main(String[] argv){
StringBuffer sb = new StringBuffer();
sb.append("this is a test");
sb.insert(2,"new value");
System.out.println(sb);
}
}