I have a List which is declared like this :
List extends Number> foo3 = new ArrayList();
I tried to add 3 to foo3.
You could do this instead:
List foo3 = new ArrayList(); foo3.add(3);