You are going to practice using Java streams by executing the exercises below.
Download the project zip file. Inspect the code.
Have a look at the Streams class. This is where you must implement your stream functions. You can make use of the following data structures (Lists)
The objects in the list are automatically created from the db.json file. You do not have to understand how this is done before making the exercises.
Use the query() function to write your stream code. You can simply use a System.out.println to check your results.
Create a list of the names of the movies which are longer than 120 minutes and the title contains more than two words
Show the the minimal duration of all movies
Show the two longest movies
Show all movie durations in hours (type = double) which are longer than 120 minutes
Show the sum of all movie durations
Get a map of all movie titels as key, and durations as value
Show all the rentals of the movies longer than 120 minutes
Make a list of unique movies which were rented after 30 nov 2020