@@ -0,0 +1,906 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class JavaArrayList %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */%0A        Scanner in = new Scanner(System.in);%0A%09%09int n = in.nextInt();%0A%09%09List%3CArrayList%3CInteger%3E%3E arrList = new ArrayList%3C%3E();%0A%09%09for (int i = 0; i %3C n; i++) %7B%0A%09%09%09int n2 = in.nextInt();%0A%09%09%09ArrayList%3CInteger%3E arrListChild = new ArrayList%3C%3E();%0A%09%09%09if (n2 %3E 0)%0A%09%09%09%09for (int j = 0; j %3C n2; j++)%0A%09%09%09%09%09arrListChild.add(in.nextInt());%0A%09%09%09arrList.add(arrListChild);%0A%09%09%7D%0A%09%09int n3 = in.nextInt();%0A%09%09for (int i = 0; i %3C n3; i++) %7B%0A%09%09%09int x = in.nextInt(), y = in.nextInt();%0A%09%09%09if (arrList.get(x - 1).size() %3C y)%0A%09%09%09%09System.out.println(%22ERROR!%22);%0A%09%09%09else%0A%09%09%09%09System.out.println(arrList.get(x - 1).get(y - 1));%0A%09%09%7D%0A    %7D%0A%7D%0A

Create JavaArrayList.java