Java8的List中去重字符串

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

參考

相關文章
相關標籤/搜索