I'm lost trying to sort an array of AbstractEvents (which can be of type DailyEvent or WeeklyEvent). They can be sorted either using a DescriptionComparator class, a StartTimeComparator class or a EndTimeComparator class. Events are added to a Planner class in an array to make things simpler.
The planner class has a sort method that accepts an instance of one of the Comparator classes (which implement java's Comparator class) mentioned above. So now I need to figure out a way to sort these events but I'm fairly new to Java and don't get much of the lingo I've seen on certain sites. I'm looking for good old pseudocode with some explanation to know what I'm doing and learn from it.
Thanks to anyone who can help!
Arrays.sort?