SetDemo
package test1;
import java.util.HashSet;
import java.util.Set;
public class SetCase {
// List Map Set Array
String[] array = { "a", "b", "c" };
public static void main(String[] args) {
Set<String> setTest = new HashSet<>();
setTest.add("111");
setTest.add("222");
setTest.add("333");
setTest.add("222");
for (Object obj : setTest) {
System.out.println(obj);
}
}
}