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).
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Humans and their filthy friendship brings nothing but trouble. My only solace is this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners