多选题 Given:
2. import java.util.*;
3. class Snack {
4. static List<String> s1 = new ArrayList<String>();
5. }
6. public class Chips extends Snack {
7. public static void main(String[] args) {
8. List c1 = new ArrayList();
9. sl.add("1"); s1.add("2");
10. cl.add("3"); c1.add("4");
11. getStuff(s1, c1);
12. }
13. static void getStuff(List<String> a1, List a2) {
14. for(String s1: a1) System.out.print (s1 + " ");
15. for(String s2: a2) System.out.print(s2 + " ");
16. } }
What is the result? (Choose all that apply.)
【正确答案】 F
【答案解析】