Its a sample java program to explain the use of comparator and comparable interfaces