Question: Create a comparable student class in the new package assignmentl. Name the student class with your last name + your first name initial + Student.

 Create a comparable student class in the new package "assignmentl". Name

Create a comparable student class in the new package "assignmentl". Name the student class with your last name + your first name initial + Student. For example, I would create my student class as public class Teddy Student implements Comparable o It contains three strings of a last name, a first name and a nine-digit identification number (a String), in this order. o Provide the general get-methods and set- methods. o Implement the method compareTo. Compare with the String of identification number o Implement the method toString. Last name + first name + identification number o Include a Comparator and implement the method compare. If two students have the same last name, first name and ID number, then they are regarded as the same person. Character case does not matter. Compare students with the alphabetical order of their last names. If the last names are the same, compare their first names. If two students have the same first name and last name, but different ID number strings, use their ID number string to compare. Character case does not matter. Create an application using SortedABList in the new package assignmentI. o Name the application with your last name + your first name initial + "ListApplication". For example, I would create my application as public class TeddyCListApplication Create three SortedABList of students. o Add the students from listOne.txt into the first list. o Add the students from listTwo.txt into the second list. o If a student in the first list is also in the second list, add this common student into the third list. o Report how many students are in both the first and second lists. Print out these common students in the third list. o

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!