Privacy Policy Terms Of Use. Copyright © 2006-2010 Java Tutorials and Examples.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
(3 votes)
- import java.util.ArrayList;
- import java.util.Collections;
- //Java ArrayList Copy
- /*
- * This Java ArrayList copy example shows how to copy one ArrayList
- * to another using copy method of Collections class.
- */
- public class JavaArrayListCopy {
- public static void main(String args[]){
- ArrayList<String> alistNumbers = new ArrayList<String>();
