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