Data-Manipulation-with-Test

Java, Streams & Junit

Let's say we want to create a movie, and have a responsibility for EUR 10 million of budget. To be able to make decisions, we should know a little bit more about movies. Luckily, there are some datasets easily available online. For example, Kaggle offers large collections of datasets from which we have taken a dataset with all movie data from the program.

You're not allowed to use any for loops in Java. All functionality can be accessed through the Stream API in Java 8. It allows you to manipulate strings and large datasets.

Questions to answer

  • The 5 most rated films (top to bottom)
  • The 5 most hired actors (top to bottom)
  • The 2 most appearing movie genres (top to bottom)
  • The % of male-female ratio (biggest % smallest)