//PROGRAM 11-28 class DemoAppend { public static void main(String[] args) { StringBuffer sb = new StringBuffer("Pemrograman"); char spasi = ' '; String bahasa = "Java"; int versi = 2; sb.append(spasi).append(bahasa).append(spasi).append(versi); System.out.println(sb.toString()); } }