//PROGRAM 11-33 class DemoReverse { public static void main(String[] args) { StringBuffer sb = new StringBuffer("Pemrograman Java"); System.out.println("Sebelum dibalik:"); System.out.println(sb.toString() + '\n'); sb.reverse(); System.out.println("Setelah dibalik:"); System.out.println(sb.toString()); } }