code: public State lastState() {
          Entry<Character, State> last = transitions.lastEntry();
          if (last == null)
              return null;
  
          return last.getValue();
      }
docs: Obtain the state that the last transition (the transition with the 'highest' character value)
  points to.
  
  @return The to-state of the last transition.