Introduction
Here is the source code for Main.java
Source
public class Main {
public static void main(String[] argv) {
String string = "animals";
System.out.println(string.charAt(0)); // a
System.out.println(string.charAt(6)); // s
System.out.println(string.charAt(7)); // throws exception
}
}