Map/Reduce/Filter Algorithm in Java
Pre-requisites:
Lambda Expressions in Java
Stream API in Java
The Problem:
List of users - find the average age of people above the age of 20
Map: to extract all ages, changes the type of list, not size
Filter: to extract all ages > 20, changes ...
shreya-agarwal.hashnode.dev2 min read