How to use Comparable Interface - Java Tips
List of objects that implement this interface can be sorted automatically by sort method of the list interface. This interface has compareTo() method that is used by the sort() method of the list. In this code Employee class is implementing Comparable int...