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