JAVA pelase: In this issue you will need to define a class called Compare which contains a single String compare method.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

JAVA pelase: In this issue you will need to define a class called Compare which contains a single String compare method.

Post by answerhappygod »

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:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply