treeset vs 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.
3.83
6
- TreeMap doesn't have null key and keys are sorted
Can contain only unique keys and keys are sorted in ascending order.
v- HasHMap can have null key, order is not guaranteed
Thank you!
6
0
Are there any code examples left?
New code examples in category Other