特牛网址导航

JAVA集合框架04——Collection子接口Set接口、HashSet、TreeSet、Comparable接口_上兵伐眸的博客-CSDN博客

网友收藏
特点:无序、五下标、元素不可重复public class TestSet { public static void main(String[] args) { Set<String> testSet = new HashSet<String>(); testSet.add("aaa"); testSet.add("bbb"); testSet.add("ccc"); //testSet.ad