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