posted 16 years ago
Hi everyone,
Can someome explain me the very diferencias between Comparable and Comparator Interfaces.
I know that the Comparable Interface needs to implements the method:
->int compareTo(T o)
And Iknow too that the Comparator Interface needs to implements the method:
->int compare(T o1, T o2)
But I want to know more the very diferencias.
Very thanks