Question: - Create a class called Student with three fields name, id, and age. Create a test class called TestStudent with a main method. In

- Create a class called Student with three fields name, id, and 

- Create a class called Student with three fields name, id, and age. Create a test class called TestStudent with a main method. In main method, instantiate Student class several times using hard coded inputs (use input from the output displayed below) and store them into an Arraylist. Do the sorting of arraylist by name first, age and ID using Comparator. Please note that if student names are identical, sort by student age and if student ages are identical then sort by student id. After sorting the arraylist, display the content of arraylist as shown below: CAWindows\system32\cmd.exe studentName StudentAge StudentID 0111 34 8111 34 9 0111 34 10 Clerk 16 Frank Jorge 19 Lee NO Michel 10 Simpson Press any key to continue XX

Step by Step Solution

3.49 Rating (146 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is the implementation of the Student class and the TestStudent test class in Java java import j... View full answer

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 Programming Questions!