Java8的List中去重字符串

List<String> distinctElements = list.stream().distinct().collect(Collectors.toList());

参考

相关文章
相关标签/搜索