現(xiàn)有:
import java.util.*;
class AddStuff2 {
public static void main(String [] args) {
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.編譯失敗