@@ -0,0 +1,680 @@
+// 9. Write a Java program to copy one array list into another.%0A%0Aimport java.util.*;%0A%0Apublic class Main %7B%0A  public static void main(String%5B%5D args) %7B%0A    List%3CString%3E list1 = new ArrayList%3CString%3E();%0A    list1.add(%22Element 1%22);%0A    list1.add(%22Element 2%22);%0A    list1.add(%22Element 3%22);%0A    list1.add(%22Element 4%22);%0A    %0A    List%3CString%3E list2 = new ArrayList%3CString%3E();%0A    list2.add(%22Element 5%22);%0A    %0A    System.out.println(%22List 1 (before copy): %22 + list1);%0A    System.out.println(%22List 2 (before copy): %22 + list2);%0A    %0A    Collections.copy(list1, list2);%0A    %0A    System.out.println(%22List 1 (after copy): %22 + list1);%0A    System.out.println(%22List 2 (after copy): %22 + list2);%0A %7D%0A%7D%0A

Create ArrayList9.java