Check out example codes for "java stream find specific element". It will help you in understanding the concepts better.

Code Example 1

Customer james = customers.stream()
  .filter(customer -> "James".equals(customer.getName()))
  .findAny()
  .orElse(null);

Learn ReactJs, React Native from akashmittal.com