Question: Please code in bluej You will create a project that will implement a simple meeting calendar. The learning objectives for this assignment are: How to

Please code in bluej You will create a project that will implementPlease code in bluej

You will create a project that will implement a simple meeting calendar. The learning objectives for this assignment are: How to implement the Comparable Interface How to implement the Comparator Interface Improve your reading / knowledge of the Java class libraries and documentation Learn to use a TreeMap Learn to use the LocalDateTime class You will create: o o o o o o 1 An enumeration type with the constants o WORK SOCIAL PROFESSIONAL OTHER A class called Contact that (has) A field for the contact's first name o A field for the contact's last name A field for the contact's phone number o A field for the relationship with the contact (the enumeration type) O A constructor with four parameters to initialize each field o A getter (accessor) for each field The class should implement the Comparable interface We will define the natural ordering as compare by last name (dictionary ordering) then first name (dictionary ordering) The class should implement the Comparator interface This ordering will be by defined by the Relationship type A class called Meeting Calendar that (has) O A field called contactList that is of type List and is a list of Contact objects A field called meetings that is a of type Map and has Keys that are of type LocalDateTime Values that are of type Contact A constructor that Initializes contactList to an empty ArrayList of Contactobjects Initializes meetings to an empty TreeMap with the same key / value pairs An addContact method that takes a Contact object and adds it to the ContactList A method sortByName that sorts the contact list by last name, then name A method sortByRelationship that sorts the contact list by the relationship type (Hint: The Enum class implements the Comparable interface) A method to print each Contact object in the contact list, one per line as follows: o o o 1 o o o Last First Phone Relationship o A method add Meeting that takes a LocalDateTime object and a Contact object and adds it to meetings A method printMeetings that prints each meeting in meetings as follows o 555-1234 PROFESSIONAL MONDAY, FEBRUARY 22 at 3:30 pm o A Driver class that o Creates a Meeting Calendar object o Adds seven contacts (at least one of each relationship type) Prints the list of contacts o Sorts the list by name Prints the list of contacts o Sorts the list by relationship type o Prints the list of contacts o Adds ten meetings (all at different times) including each contact at least once o Prints the meetings o NOTES: Be sure to fully Javadoc your code Do NOT add any fields or methods. Include only those specified Do NOT change the names of any fields, methods, or classes that are specified Insert screen shots of your code into a Word or PDF document to upload as your submission Be sure everything is legible

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!