public Key min(){
  if (isEmpty())   throw new NoSuchElementException("called min() with empty set");
  return set.first();
}

public Key min ( ) { if ( isEmpty ( ) ) throw new NoSuchElementException ( "called min() with empty set" ) ; return set . first ( ) ; }
returns the smallest key in this set .
