The comparable interface in Java ( Practical application )
First of all, let's understand why the interface exists. In a typical sorting lecture where a student is introduced to a particular sorting algorithm, the data set that will be used will most likely be an array of integers. Example sort [ 2, 6, 1, 4,...