@@ -0,0 +1,674 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class JavaList %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in=new Scanner(System.in);%0A        List%3CInteger%3E list = new ArrayList%3C%3E();%0A        int n=in.nextInt();%0A        for (int i=0;i%3Cn;i++) list.add(in.nextInt());%0A        int q=in.nextInt();%0A        for (int i=0;i%3Cq;i++) %7B%0A            String operation=in.next();%0A            if (operation.equals(%22Insert%22)) list.add(in.nextInt(), in.nextInt());%0A            else if (operation.equals(%22Delete%22)) list.remove(in.nextInt());%0A        %7D%0A        for (int a:list) System.out.print(a+%22 %22);%0A    %7D%0A%7D%0A

Create JavaList.java