Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2 code example
Example: java array out of bounds
//Use index inside the bounds of the array
//Use index inside the bounds of the array