I have a code below where i tried to copy an
arrayList to
listusing Collections.copy method.
I am getting
IndexOutofBoundsException since the size of destination list is not equal to the source list.
my question.. is there any
Java API help through which i can copy an entire list of any size to a new list(the destination list can be of any size and may be empty).