JAVA SORT HACKKERANK WITH COMPARATOR.COMPARING AND THEN COMPARING FUNCTION
import java.util.*; class Student{ private int id; private String fname; private double cgpa; public Student( int id, String fname, double cgpa) { super (); this .id = id; this .fname = fname; this .cgpa = cgpa; } public int getId() { return id; } public String getFname() { return fname; } ...