Question
in java You are to write 2 Comparable classes: one called Student that will include a student's first name, last name and an 8-character ID
in java You are to write 2 Comparable classes: one called Student that will include a student's first name, last name and an 8-character ID in the format S#######. one called Faculty that will include a faculty member's first name, last name and an 8-character ID in the format F#######. Your class must include "toString", "equals", and "compareTo", as well the usual sets and gets. Your compare should compare by last name, and if they are the same, first name. Your equals should compare IDs. Your program will be written to manage 2 BSTs: one for faculty and one for students, and should be able to insert, delete and display the current list of students and faculty. Your program should use the "toString" method to SORT the lists. The program should save the list to text files, Student.txt and Faculty.txt
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started