remove all objects in an arraylist java code example Example: how to remove all items from alist in java list.clear();