Copying ArrayLists

Write a program that creates an ArrayList of Integers. It should put ten random numbers from 1 to 100 in the ArrayList. It should copy all the elements of that ArrayList into another ArrayList of the same size. Then display the contents of both ArrayLists in any way you like.

ArrayList 1: [45, 87, 39, 32, 93, 86, 12, 44, 75, -7]
ArrayList 2: [45, 87, 39, 32, 93, 86, 12, 44, 75, 50]



©2013 Graham Mitchell

This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
Creative Commons License