set必须不可以重复,必须实现equal方法,
hashSet:必须实现hashcode方法,
treeSet:底层是树结构,必须实现比较接口comparable
posted on 2017-02-02 23:56 老邱2 阅读(98) 评论(0) 编辑 收藏 举报