赞
踩
import java.util.HashSet; import java.util.Iterator; import java.util.Set; public class TestHashSet { public static void main(String[] args) { Set<String> set = new HashSet<String>(); set.add("one"); set.add("two"); set.add("three"); Iterator it = set.iterator(); while(it.hasNext()){ System.out.println(it.next()); } } }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。