- 链接地址:https://blog.csdn.net/weixin_44153521/article/details/123107801
- 链接标题:JAVA集合框架04——Collection子接口Set接口、HashSet、TreeSet、Comparable接口_上兵伐眸的博客-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:9168
特点:无序、五下标、元素不可重复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
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除