import java.util.*;
public class GenSetExample {
public static void main(String[] args) {
Set<String> set=new HashSet<String>();
set.add("one");
set.add("second");
set.add("3rd");
System.out.println(set);
}
}
[3rd, one, second]
转载请注明原文地址:https://ipadbbs.8miu.com/read-59061.html