Continue extending the Figs project by taking the following steps.
Create a class Time in package edu.vtc.figs with a constructor taking three integers for he hours, minutes, and seconds. It should store those values into private fields. Your class does not need to have any other methods at this time. It is just a placeholder.
Create a class Event in package edu.vtc.figs with a constructor that takes a Date, a Time, and an event description as a String. It should store those values into private fields. Your class does not need to have any other methods at this time. It is just a placeholder.
Create a class Datebook in package edu.vtc.figs. It does not need an explicit constructor (at this time) but it should have a private field of type ArrayList<Event> (imported from package java.util. An ArrayList is like an array except that it can grow after it is is created. The "<Event>" notation specifies what kind of thing is in the ArrayList. In other words I'm asking you to create "an ArrayList of Events."
Implement the following methods in class Datebook
void displayEvents(). This method should display all the events in the Datebook in some suitable manner (you can choose what "suitable" means). To process the events in the ArrayList write a loop that runs size times and uses the get method of the ArrayList class to get each event. You may have to include accessor methods in the other classes to get at the necessary internal data.
void addEvent(Event e). This method adds the event e to the Datebook. It should add it in chronological order (meaning just before the first event with a larger date. There is an add method in the ArrayList class that will be helpful. You may need to implement a method in class Date that allows you to compare Date objects.
void removeEvent(int index). This method removes the event at the specified position in the Datebook. It should ignore attempts to remove events that don't actually exist (negative index values or index values that are too large).
Finally modify (hack) the main program in Figs.java so that it creates a single instance of the Datebook class. The static methods that implement the commands should be rewritten to use this instance instead. For now you can specify times of 00:00:00 on each event (don't require the user to enter time information, etc). You now have the beginnings of a reasonable datebook program!
Zip up your edu.vtc.figs folder and submit the zip file.
Although not required for this lab, the next step would be to implement a method void saveEvents(String fileName) in class Datebook that writes the contents of the Datebook to the named file. You could also provide a constructor for class Datebook that takes a file name and reads that file into its internel event list. Then modify the main program so that it automatically saves the Datebook when it exits and reloads it when it starts. After this step you will have an actual usable application!