Comparable and Comparator Review

Class date: February 11

NEW HW: JM Ch 15 1-4-this is a re-do!

Objective: Show original program with three objects (see HW below). Explain your algorithm to your peers.

HW(assigned yesterday): Create three objects. Make two identical and the other slightly different from the two. Use the Comparable and Comparator Interfaces to test the two objects that are the same and then the two objects that are different. We will look at your work tomorrow in class.

Leave a comment