11. public void addStrings(List list) {
12. list.add(�foo�);
13. list.add(�bar�);
14. }
What must you change in this method to compile without warnings?
A. add this code after line 11:
list = (List<String>

list;
B. change lines 12 and 13 to:
list.add<String>(�foo�);
list.add<String>(�bar�);
C. change the method signature on line 11 to:
public void addStrings(List<? extends String> list) {
D. change the method signature on line 11 to:
public void addStrings(List<? super String> list) {
E. No changes are necessary. This method compiles without warnings
The Ans is D. But I think the answer is E. please correct me if I'm wrong.
-Thanks