What does the return value inside the Comparator actually mean?
For example :
class TreeSetDemo { public static void main(String
You are confusing return-type and return-value. The return-type is int. The return value is described in the documentation:
int
Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.