Collections and Generics
© examsiri.com
Question : 36 of 53
Marks:
+1,
-0
Given:
What must you change in this method to compile without warnings?
1. public void addStrings(List list) {
2. list.add(”foo”);
3. list.add(”bar”);
4. } What must you change in this method to compile without warnings?
Go to Question: