Possible Duplicate:
Why aren’t Java Collections remove methods generic?
The Java Collection<E> interface has a contains method with the following signature:
boolean contains(Object o)
Since the interface is generic with type E shouldn't the signature be
boolean contains(E o)
to reflect that and only allow arguments of type E.
The same question can be asked regarding the remove(Object o) method