0 votes
1 view
in Java by (47.8k points)
In Java, there are the SortedSet and SortedMap interfaces, but no SortedList interface.

1 Answer

0 votes
by (107k 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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !