Answers for "list unique java"

1

java get distinct values from list

List<String> distinctElements = list.stream()
                        .distinct()
                        .collect(Collectors.toList());
Posted by: Guest on January-17-2021
0

find the unique element in a list java

use Set<Obejc> set = new Set<Object>
Posted by: Guest on December-29-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language