Package java.util
Class ArrayList
Description:
Returns a shallow copy of this ArrayList instance. The elements themselves are not copied.
Example
ArrayList aList = new ArrayList(2);
aList.add("A The first element!");
aList.add("A The second element!");
ArrayList bList = (ArrayList)aList.clone();
for (int i = 0; i < 2; i++)
{
Logger.log("List A element: " + aList.get(i) + " List B element: " + aList.get(i));
}
The example above copies the ArrayList instance.