Return all customers with stream function

PHOTO EMBED

Sat Jan 29 2022 09:06:30 GMT+0000 (Coordinated Universal Time)

Saved by @Shuhab

   public List<Customer> getCustomers1(){
       return this.customers
      .stream()
      .filter(c -> c.getPoints() > 100)
      .collect(Collectors.toList());

    } 
content_copyCOPY