Answers for "get item from list java"

5

java stream find specific element

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

how to get elements of a list in java

int num = list.get(0);
Posted by: Guest on January-05-2020

Code answers related to "get item from list java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language