Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (47.6k points)
In Java, there are the SortedSet and SortedMap interfaces, but no SortedList interface.

1 Answer

0 votes
by (106k points)

You can use indexed-tree-map. Indexed-tree-map is an enhanced JDK's TreeSet that provides access to the element by index and finding the index of an element without iteration or hidden underlying lists that back up the tree.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Mar 7, 2021 in Java by Jake (7k points)

Browse Categories

...