Question: Question 5 [4 + 41 Write codes to complete the following the two tasks for the provided codes: A. Find whether any student object with

Question 5 [4 + 41 Write codes to complete the following the two tasks for the provided codes: A. Find whether any student object with name Peter exists in the list using the contains method of the list object. Add required methods into the Student class to use the contains method B. Now sort the "list" in descending order of CGPA using Comparator class Student String name; int id; double cgpa; public class Main { public static void main(String[] args) { ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
