package L15.JiHe;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
/**
* Created by fangjiejie on 2017/3/12.
*/
public class Hset {
public static void main(String[] args) {
Set<String> s=
new HashSet<>();
s.add(
"AAA");
s.add(
"bbb");
s.add(
"ccc");
s.add(
"ddd");
Iterator<String> it=s.iterator();
while(it.hasNext()){
System.out.println(it.next());
}
}
}
转载请注明原文地址: https://ju.6miu.com/read-34756.html