
536 • Java Programming
boolean contains(Object obj)
Returns true if obj is an element of the invoking collection.
Otherwise, returns false.
booleancontainsAll(collection c)
Returns true if the invoking collection contains all
elements of c. otherwise, returns false.
boolean equals(Object obj)
Returns true if the invoking collection and obj are equal.
Otherwise, returns false.
boolean isEmpty()
Returns true if the invoking collection is empty. Otherwise,
returns false.
Iterator iterator()
Returns an iterator for the invoking collection.
Boolean remove(Object obj)
Removes one instance of obj from the invoking collection.
Returns true if the ...