Returns the smallest key in this symbol table. @return the smallest key in this symbol table @throws NoSuchElementException if this symbol table is empty
()
| 188 | * @throws NoSuchElementException if this symbol table is empty |
| 189 | */ |
| 190 | public Key min() { |
| 191 | if (isEmpty()) throw new NoSuchElementException("calls min() with empty symbol table"); |
| 192 | return st.firstKey(); |
| 193 | } |
| 194 | |
| 195 | /** |
| 196 | * Returns the largest key in this symbol table. |