多选题 Given:
2. import java.util.*;
3. public class Salt {
4. public static void main(String[] args) {
5. Set s1 = new HashSet();
6. s1.add(0);
7. s1.add("1");
8. doStuff(s1);
9. }
10. static void doStuff(Set<Number> s) {
11. do2(s);
12. Iterator i = s.iterator();
13. while(i.hasNext()) System.out.print(i.next() + " ");
14. Object[] oa = s.toArray();
15. for(int x = 0; x < oa.length; x++)
16. System.out.print(oa[x] + " ");
17. System.out.println(s.contains(1));
18. }
19. static void do2(Set s2) {System.out.print(s2.size() + " ");
20. }
What is the most likely result?
【正确答案】 B
【答案解析】