📅  最后修改于: 2022-03-11 14:58:49.043000             🧑  作者: Mango
What is the output of the following code snippet?
TreeSet set = new TreeSet();
set.add("B");
set.add("A");
set.add("D");
set.add("A");
for(String s : set) { System.out.print(s + " "); }