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

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