These three methods are straightforward:
- size(): This returns count of elements in the list
- isEmpty(): This returns true if there is no elements in the list (size() returns 0)
- clear(): This removes all elements from the list so that isEmpty() returns true and size() returns 0