Citation:
The remove() method removes an element from a collection, if it exists, and returns true. If the element doesn't exist, it returns false.
The opposite operation of remove(), this method adds an element to a collection.
clear(): This method removes all elements from a collection, making it empty.
isEmpty(): This method checks if a collection has no elements and returns true if empty.