java代码创建Set

Set set = new HashSet();  //无序

Set set = new LinkedHashSet();  //按插入顺序

猜你喜欢

转载自blog.csdn.net/dd2016124/article/details/109200207