A.產(chǎn)生換行 B.插入一個(gè)空行 C.產(chǎn)生回車 D.以上都不對
A.stop() B.flush() C.exit() D.close()
1. import java.util.*; 2. class AddStuff { 3. public static void main(String [] args) { 4. TreeSet〈String〉 s = new TreeSet〈String〉(); 5. s.add("one"); 6. s.add("two"); 7. // insert code here 8. for(String s2 : sorted) 9. System.out.print(s2 + " "); 10. } 11. } 和四個(gè)代碼片段: s1. SortedSet sorted = s.tailSet(s.first()); s2. SortedSet〈String〉 sorted = s.tailSet(s.first()); s3. SortedSet sorted = (SortedSet)s.tailSet(s.first()); s4. SortedSet sorted = (SortedSet〈String〉)s.tailSet(s.first()); 分別插入到第7行,哪項(xiàng)可以編譯?()
A.s1 B.s2 C.s2 和 s3 D.s2 和 s4