JavaStreamAPIExamples
This project contains a few example of the JAVA 8 stream APIs
Problems solved in this projects are:
-
Filtering and printing students from the list with age more than 15 (filter)
-
Calculating and printing the average mark of all students (map, collect, maptodouble)
-
Making named upper case using peek function (peek)
-
Finding min and max from a list using stream apis (min and max)
-
Printing subjects and the number of students pursuing the subject using stream api (map, flatmap, collect)
-
Finding the number of movies of each director (map, collect)
-
Find the number of genres of each director's movies: Map<String(director), Map<String(genre), Long(number)>> you have movie list in hand (flatmap, collect)