Question: Can someone help me on this question please In java, 1. (20 pts.) Given the Thing class below, implement the Comparable interface so two Thing
1. (20 pts.) Given the Thing class below, implement the Comparable interface so two Thing objects can be properly compared. Two Thing objects should be compared first by name, then by number if the names are the same public oclass Thing The right way private String name private int nunber z / Assume constructors, gets, sets, etc. already exist Write the code to compare two Things based on the directions above s /Jend class Thing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
