//PROGRAM 11-8 class DemoCharAt2 { public static void main(String[] args) { System.out.println("Karakter pertama : " + "Java".charAt(0)); System.out.println("Karakter kedua : " + "Java".charAt(1)); System.out.println("Karakter ketiga : " + "Java".charAt(2)); System.out.println("Karakter keempat : " + "Java".charAt(3)); } }