For this homework assignment, you will create a class that is able to store basic information about movies (e.g. title, release date, length, and IMDB rating) and sort them by different attributes (e.g. movies sorted by release date, versus movies sorted by length).
The official name of this homework is MovieSorter
. This should be the name you use for your Eclipse Java project and the name you use when running the homework test script.
See the Homework Guides for additional details on homework requirements and submission.
Below are some hints that may help with this homework assignment:
-
Focus on just getting the sorting order working first, then worry about using the right kind of class or lamba expression second.
-
There are several ways you can implement each comparator. The Javadocs refer to some useful methods, but you do not HAVE to use them.
You are not required to use these hints in your solution. There may be multiple approaches to solving this homework.