java 数组求差集 Set<Long> set1 = new HashSet<>(Arrays.asList(arr1)); Set<Long> set2 = new HashSet<>(Arrays.asList(arr2)); set1.removeAll(set2);