Java Streams API - Stream usage (Set 2) tutorial
Channel: Balaji Chandrasekaran
Date: 2024-03-31

https://www.youtube.com/channel/UC971_t26MVs7uMtjbgf7elQ?sub_confirmation=1
I'll be discussing few examples of using Java streams (Set 2)
1. Find the salary statistics of the employees  in each department (collect, groupingBy and summarizingDouble)
2. Find the highest salaried employee in each department (collect, groupingBy, reducing and maxBy)
3. Find all the departments for the given employees (map, distinct, collect and toList)
4. Find the first matching senior employee by joining year (sorted, comparingInt and findFirst)
5. Find the nth matching senior employee by joining year (sorted, comparingInt, skip and findFirst)
6. Find the employes less than 30 years and have 30 years or more (collect and partitioningBy)
7. Implement Anagram using Java streams (collect, groupingBy, counting and allMatch)
8. Implement Fibonacci series using Java streams (iterate, limit, map, collect and joining)




















00:00 Introduction
00:07 "Employees salary statistics by department (collect, groupingBy and summarizingDouble)"
01:22 "Highest salaried employee by department (collect, groupingBy, reducing and maxBy)"
03:06 "Distinct departments (map, distinct, collect and toList)"
03:42 "First matching senior Employee by joining year (sorted, comparingInt and findFirst)"
04:18 "Nth matching senior Employee by joining year (sorted, comparingInt, skip and findFirst)"
05:01 "Employees partition by age - 30 years (collect and partitioningBy)"
06:07 "Anagram (collect, groupingBy, counting and allMatch)"
07:37 "Fibonacci series (iterate, limit, map, collect and joining)"