JAVA pelase: In this issue you will need to define a class called Compare which contains a single String compare method.
Posted: Wed Apr 27, 2022 3:52 pm
JAVA pelase:
In this issue you will need to define a class called
Compare which contains a single String
compare method. The method will receive as parameters the
names of two students and two double numbers representing their GPA
and will return the name of the student with the highest GPA.
If the GPA value of the two students is equal, the name of the
student who is lexicographically smaller will be displayed.
Signature:
Example:
In this issue you will need to define a class called
Compare which contains a single String
compare method. The method will receive as parameters the
names of two students and two double numbers representing their GPA
and will return the name of the student with the highest GPA.
If the GPA value of the two students is equal, the name of the
student who is lexicographically smaller will be displayed.
Signature:
Example: