import java.util.ArrayList;
import java.util.Collections;
public class Main {
public static void main(String[] args) {
ArrayList arrayList1 = new ArrayList();
arrayList1.add("1");
arrayList1.add("2");
arrayList1.add("3");
ArrayList arrayList2 = new ArrayList();
arrayList2.add("One");
arrayList2.add("Two");
arrayList2.add("Three");
arrayList2.add("Four");
arrayList2.add("Five");
System.out.println(arrayList2);
Collections.copy(arrayList2, arrayList1);
System.out.println(arrayList2);
}
}
/*
[One, Two, Three, Four, Five]
[1, 2, 3, Four, Five]
*/