Get an element at a specific index from a NavigableSet <p>I have a <code>NavigableSet</code> and I would like to get its median object.</p> <p>Being that it's a <code>NavigableSet</code>, I know it's sorted, and thus I know that the median of it is either the middle element, or the arithmetic middle of the two middle elements.</p> <p>Therefore I would like to access the element at <code>set.size() / 2</code>, but the <code>NavigableSet</code> interface doesn't allow me to.</p> <p>Is there an easy way to get the specific element without having to iterate through the set manually?</p>