Answers for "check if object in list java"

3

check if object in array java

Arrays.asList(yourArray).contains(yourValue)
Posted by: Guest on September-19-2020
0

java list contains object with property

boolean found = list.stream()
              .anyMatch(p -> p.name.equals(personName));
Posted by: Guest on February-19-2020

Code answers related to "check if object in list java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language