Showing posts with label Custom Object. Show all posts
Showing posts with label Custom Object. Show all posts

TreeMap using custom object sorting

We know that by default TreeMap will sort the values using key. Suppose if we need to sort the TreeMap using object stored in key part then we need to implement the Comparator interface...