The size() method is used to determine the total number of elements present in a collection, such as a list or array.
study better by seeing where size() fits in our study guide app
isEmpty(): This method checks if a collection is empty and returns true if it is, false otherwise.
The add() method adds an element to the end of a collection and increases its size by one.
This method removes an element from a collection and decreases its size by one.