单选题现有:  1.  import java.util.*;      2.  class AddStuff  {  3.public static void main (String  []  args)    {      4.TreeSet  s= new TreeSet();      5.    s.add( "one"):      6.    s.add( "two"):  7.    //insert code here      8.for (String s2:  sorted)  

题目
单选题
现有:  1.  import java.util.*;      2.  class AddStuff  {  3.public static void main (String  []  args)    {      4.TreeSet  s= new TreeSet();      5.    s.add( "one"):      6.    s.add( "two"):  7.    //insert code here      8.for (String s2:  sorted)      9.System.out.print (s2+" ");      10.    }     11.  }  和四个代码片段:  s1.sortedSet  sorted=s.tailSet(s.first());  s2.sortedSet  sorted=s.tailSet(s.first());  s3.sortedSet  sorted=  (SortedSet)s .tailSet(s.first());  s4.SortedSet  sorted=  (SortSet)s .tailSet(s.first()); 分别插入到第7行,哪项可以编译?()
A

s2

B

sl

C

s2和s3

D

s2和s4

E

s2, s3和s4

F

sl. s2. s3和s4


相似考题