單項(xiàng)選擇題

現(xiàn)有: 
import java.util.*;     
class AddStuff2  { 
public static void main(String  []  args)  {     
TreeSett=new TreeSet();     
if (t.add("one"))     
if (t.add("two"))    
if (t.add ("three")) 
add("four"); 
for (String s  :  t)     
System.out.print (s);    
}     
}     
結(jié)果為:()     

A. one
B. one three two
C. one two three
D. one two three four
E. four one three two
F.編譯失敗

題目列表

你可能感興趣的試題

微信掃碼免費(fèi)搜題