List<String> distinctElements = list.stream().distinct().collect(Collectors.toList());
转载于:https://my.oschina.net/fxtxz2/blog/3019323
List<String> distinctElements = list.stream().distinct().collect(Collectors.toList());
转载于:https://my.oschina.net/fxtxz2/blog/3019323