mardi 4 août 2015

Why has ArrayList add E and remove Object [duplicate]

This question already has an answer here:

For ArrayList we have:

public boolean add(E e) {

but for remove we have:

public boolean remove(Object o) {

Why isn't it?:

public boolean remove(E e) {

Aucun commentaire:

Enregistrer un commentaire