I need a shallow copy of an java ArrayList, should I use clone() or iterate over original list and copy elements in to new arrayList, which is fast
ArrayList
clone()
Instead of iterating manually you can use the copy constructor.
As for the speed difference between that and using clone():