@@ -0,0 +1,460 @@
+public class ArrayTest %7B%0A    static public int getSomeData(int%5B%5D dat, int index) throws ArrayIndexOutOfBoundsException %7B%0A%09if(index%3Edat.length) %7B%0A%09    throw new ArrayIndexOutOfBoundsException();%0A%09%7D else %7B%0A%09    return dat%5Bindex%5D;%0A%09%7D%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A%09int data%5B%5D = new int%5B5%5D;%0A%0A%09try %7B%0A%09    getSomeData(data, 6);%0A%09%7D catch(ArrayIndexOutOfBoundsException e) %7B%0A%09    System.out.println(%22Access to out of bounds element%22);%0A%09%7D%09%0A    %7D%0A%7D

complete exception exercise