how to get distinct values from list in java 8 code example
Example: java get distinct values from list
List<String> distinctElements = list.stream()
.distinct()
.collect(Collectors.toList());
List<String> distinctElements = list.stream()
.distinct()
.collect(Collectors.toList());