A. Add code (see below for details) to the methods "set" and
"get" in the following class, ArrayTen.java, so that these two
methods catch the exception
java.lang.ArrayIndexOutOfBoundsException if an illegal index is
used, and in turn throw java.lang.IndexOutOfBoundsException
instead.
Modify the "main" method to catch
java.lang.IndexOutOfBoundsException and, when such an exception is
caught, print the exception as well as the stack trace.
public class ArrayTen {
private String myData[] = new String[10];
public void set(int index, String value) {
myData[index]...