java数组去重

        String[] someArr =new String[]{"a","b","c","a"};
        //去重
        someArr=Arrays.stream(someArr).distinct().toArray(String[]::new);
        Arrays.stream(someArr).forEach(System.out::println);

 

java数组去重

上一篇:Python 发送邮件提醒


下一篇:linux安装python