Using the copy constructor of Arraylist instead of copying with a for.