Assertion: collection's element | /r/AtLocation | the collection
Facets:
Source sentences:
text: It has methods that tell you how many elements are in the collection ( size , isEmpty ), methods that check whether a given object is in the collection ( contains ), methods that add and remove an element from the collection ( add , remove ), and methods that provide an iterator over the collection ( iterator ).
text: Finally, the contains() method checks if a specified element is in the collection.