//PROGRAM 11-29 class DemoInsert { public static void main(String[] args) { StringBuffer sb = new StringBuffer("saya menyukai Java"); char spasi = ' '; char koma = ','; String s1 = "Selain C/C++ dan Pascal"; String s2 = "juga "; sb.insert(0, s1); sb.insert(23, koma).insert(24, spasi); sb.insert(30, s2); System.out.println(sb.toString()); } }