Look at the API doc for the compare method of the Comparator interface. It explains what values the method should return.

Please edit your post and wrap your code with code tags:



**YOUR...