Question: Create a Java program that will store 1 0 student objects in an ArrayList, ArrayList Student > . A student object consists of the following

Create a Java program that will store 10 student objects in an ArrayList, ArrayList Student >. A student object consists of the following fields:
-int rollno
-String name
-String address
Implement two comparator classes to sort student objects by name and by rollno (roll number).
Implement your own selection sort method and place your code in a separate Java source file. Do not use a sort method from the Java collections library.
 Create a Java program that will store 10 student objects in

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!