java 11 list get distinct 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());