赞
踩
- List<Integer> cts = new ArrayList<>(ctSets);
- Set<Integer> ctSet = new HashSet<>(cts);
- List<Integer> ctss = new ArrayList<>(ctSet);
Arrays.asList()
实现 三者之间的互转
List<Object> list = new Arraylist<>();
List<Object> subList = list.subList(0, 5);
其中subList(0, 5)取得的是下标为0到4的元素,不包含下标为5的元素.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。