class TestString { public static void main(String[] args) { String name = "Manu Ginobili"; // Compute the length; int len; System.out.println("The string is " + name); len = name.length(); System.out.println("The length of the string is " + len); // get the character at 0 System.out.println("The character at 0 is " + name.charAt(0)); System.out.println("The character at 1 is " + name.charAt(1)); System.out.println("The character at 2 is " + name.charAt(2)); int index; for(index = 0; index < name.length(); index++) { System.out.println(name.charAt(index)); } } }