difference between treeset and treemap code example
Example: difference between treeset and treemap
TreeSet: Can contain only unique values and
it is sorted in ascending order
TreeMap: Can contain only unique keys and
keys are sorted in ascending order.