Generics List Interface...newb question
- by newToProgramming
The List interface is the following:
public interface List<E>{
public boolean add(Object e);
public boolean remove(Object e);
public boolean contains(Object e);
...etc
Why aren't the add, remove and contains methods written like the following?
public boolean add(E e)
public boolean remove(E e)
public boolean contains(E e)