@@ -0,0 +1,2435 @@
+package com.javarush.task.task14.task1419;%0A%0Aimport java.lang.reflect.Method;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/* %0A%D0%9D%D0%B0%D1%88%D0%B5%D1%81%D1%82%D0%B2%D0%B8%D0%B5 %D0%B8%D1%81%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B8%D0%B9%0A*/%0A%0Apublic class Solution %7B%0A    public static List%3CException%3E exceptions = new ArrayList%3CException%3E();%0A%0A    public static void main(String%5B%5D args) %7B%0A        initExceptions();%0A%0A        for (Exception exception : exceptions) %7B%0A            System.out.println(exception);%0A        %7D%0A    %7D%0A%0A    private static void initExceptions() %7B   //it's first exception%0A        try %7B%0A            float i = 1 / 0;%0A%0A        %7D catch (Exception e) %7B%0A            exceptions.add(e);%0A        %7D%0A%0A        //%D0%BD%D0%B0%D0%BF%D0%B8%D1%88%D0%B8%D1%82%D0%B5 %D1%82%D1%83%D1%82 %D0%B2%D0%B0%D1%88 %D0%BA%D0%BE%D0%B4%0A        try %7B // 2%0A            int%5B%5D array = %7B0, 1, 2%7D;%0A            System.out.println(array%5B3%5D);%0A        %7D catch (ArrayIndexOutOfBoundsException aIOOBE) %7B%0A            exceptions.add(aIOOBE);%0A        %7D%0A%0A        try %7B // 3%0A            int number = Integer.parseInt(%224.5%22);%0A        %7D catch (NumberFormatException nFE) %7B%0A            exceptions.add(nFE);%0A        %7D%0A%0A        try %7B // 4%0A            Object szStr%5B%5D = new String%5B10%5D;%0A            szStr%5B0%5D = Character.valueOf('*');%0A        %7D catch (ArrayStoreException aSE) %7B%0A            exceptions.add(aSE);%0A        %7D%0A%0A        try %7B // 5%0A            Object object = Character.valueOf('a');%0A            System.out.println((Byte) object);%0A        %7D catch (ClassCastException cCe) %7B%0A            exceptions.add(cCe);%0A        %7D%0A%0A        try %7B // 6%0A            int%5B%5D array = new int%5B-5%5D;%0A        %7D catch (NegativeArraySizeException nASE) %7B%0A            exceptions.add(nASE);%0A        %7D%0A%0A        try %7B // 7%0A            int%5B%5D array = new int%5B5%5D;%0A            array = null;%0A            int length = array.length;%0A        %7D catch (NullPointerException nPE) %7B%0A            exceptions.add(nPE);%0A        %7D%0A%0A        try %7B // 8%0A            String s = %22ABC%22;%0A            System.out.println(s.charAt(10));%0A        %7D catch (StringIndexOutOfBoundsException sIOOBE) %7B%0A            exceptions.add(sIOOBE);%0A        %7D%0A%0A        try %7B // 9%0A            Class%3C?%3E testClass = Solution.class;%0A            Method method = testClass.getMethod(%22fooMethod%22, Solution.class);%0A        %7D catch (NoSuchMethodException nSME) %7B%0A            exceptions.add(nSME);%0A        %7D%0A%0A        try %7B // 10%0A            Class testClass = Class.forName(%22com.javarush.task.task14.task1419.Class%22);%0A        %7D catch (ClassNotFoundException cNFE) %7B%0A            exceptions.add(cNFE);%0A        %7D%0A    %7D%0A%7D%0A

Complete task1419