Question: //2.3.1 add your implementation of the compareTo(...) method // compare this student to the other student passed based on their names. // first by last

//2.3.1 add your implementation of the compareTo(...) method

// compare this student to the other student passed based on their names.

// first by last name, then first name if the last name is the same.

// return 0, positive integer, or negative integer values

// 0 if this student's name is the same as the other student's name,

// positive integer if this student's name follows the other student's name in the alphabetical order,

// negative integer if this student's name precedes the other student's name in the alphabetical order.

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!