Answers for "how to find an object from a list of objects"

2

java find item in list by property

Customer james = customers.stream()
  .filter(customer -> "James".equals(customer.getName()))
  .findAny()
  .orElse(null);
Posted by: Guest on February-19-2020
2

find value in object c#

var item = TextPool.FirstOrDefault(o => o.Name == "test");
if (item != null)
       item.value = "Value";
Posted by: Guest on September-22-2020

Code answers related to "how to find an object from a list of objects"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language