I have two methods as follows
public void add(List<String> strs) {...}
public void add(List<Integer> ints) {...}
I get compilation errors, so my question is why this is not overloading, and what is the advantage of using generics then?
This is the error that I get:
Method add(List<Integer>) has the same erasure add(List<E>) as another method in type Child