//PROGRAM 11-12 class DemoToCharArray { public static void main(String[] args) { String s = "Pemrograman Java"; char[] temp = new char[s.length()]; temp = s.toCharArray(); System.out.println("Karakter pertama : " + temp[0]); System.out.println("Karakter kedua : " + temp[1]); System.out.println("Karakter ketiga : " + temp[2]); System.out.println("dan seterusnya..."); } }