@@ -0,0 +1,517 @@
+// Cool working of remove method of Arraylist (unboxing and boxing effect)%0Aimport java.util.*;%0Aimport java.lang.*;%0Aimport java.io.*;%0A%0Aclass ListWorking%7B%0A%09public static void main(String%5B%5D args)%7B%0A%09%09List%3CInteger%3E l1 = new ArrayList%3CInteger%3E();%0A%09%09l1.add(1);%0A%09%09l1.add(2);%0A%09%09l1.add(3);%0A%09%09l1.add(4);%0A%09%09l1.add(5);%0A%09%09l1.add(6);%0A%09%09System.out.println(l1);%0A%09%09//it will remove value at index = 1%0A%09%09l1.remove(1);%0A%09%09System.out.println(l1);%0A%09%09//it will remove element = 6%0A%09%09l1.remove(new Integer(6));%0A%09%09System.out.println(l1);%0A%0A%09%7D%0A%7D%0A

Create ListWorking.java