1.list转set Set set = new HashSet(new ArrayList()); 2.set转list List list = new ArrayList(new HashSet()); 3.数组转为list List stooges = Arrays.asList("Larry", "Moe", "Curly"); 此时stooges中有有三个元素。 4.数组转为set int[] a = { 1, 2, 3 }; Set set = new HashSet(Arrays.asList(a))…