String[] someArr =new String[]{"a","b","c","a"}; //去重 someArr=Arrays.stream(someArr).distinct().toArray(String[]::new); Arrays.stream(someArr).forEach(System.out::println);
2022-05-18 19:36:33
String[] someArr =new String[]{"a","b","c","a"}; //去重 someArr=Arrays.stream(someArr).distinct().toArray(String[]::new); Arrays.stream(someArr).forEach(System.out::println);
下一篇:linux安装python