If you want to use Collections.sort() with a class you have created, you must _________________. a. Write

Question:

If you want to use Collections.sort() with a class you have created, you must _________________.
a. Write your own compare To() method
b. Overload the < and > operators
c. Write your own toString() method
d. Write both a compare To() method and toString() method

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java Programming

ISBN: 9780357673423

10th Edition

Authors: Joyce Farrell

Question Posted: