Hints help required

could u provide me with some reference which I can use to solve the problem.

You need to create a separate class for Salary inputs and define a constructor to take input and compare function to remove redundant values.

just implement the comparable interface and write the compareTo method to sort according to given condition
https://ide.codingblocks.com/s/234889 you can take help of this code and understand the approach.

could u please elaborate about the collection.sort technique u have mentioned in the tutorial , actually i don’t know how to implement that !

It is used to sort the elements present in the specified of Collection in ascending order.
It works similar to java.util.Arrays.sort() method but it is better then as it can sort the elements of Array as well as linked list, queue and many more present in it.

could you tell the implementation of the collection.sort method i searched the web but could not implement it properly.

public static <T extends Comparable<? super T>> void sort(List<T> list) {
    Object[] a = list.toArray();
    Arrays.sort(a);
    ListIterator<T> i = list.listIterator();
    for (int j=0; j<a.length; j++) {
        i.next();
        i.set((T)a[j]);
    }
}