This video demonstrates how we can use filter method to get filtered results from current collection. This is also useful to get elements by applying multiple conditions. We can use filter method in stream API to to reduce list without need of using any loops in java.
Also we can use findFirst to get first result from filtered collection or actual collection as well. I have demonstrated same.
Other videos
Stream API - Using map method - • Stream API - Using map method
Stream API - Remove Duplicates From List - • Stream API - Remove Duplicates From List