isEmpty(): This method checks if a collection is empty and returns true if it is, false otherwise.
add():The add() method adds an element to the end of a collection and increases its size by one.
remove():This method removes an element from a collection and decreases its size by one.