code: public String nextToken(String delim) {
          delimiters = delim;
  
          /* delimiter string specified, so set the appropriate flag. */
          delimsChanged = true;
  
          setMaxDelimCodePoint();
          return nextToken();
      }
docs: Returns the next token in this string tokenizer's string. First,
  the set of characters considered to be delimiters by this
  <tt>StringTokenizer</tt> object is changed to be the characters in
  the string <tt>delim</tt>. Then the next token in the string
  after the current position is returned. The current position is
  advanced beyond the recognized token.  The new delimiter set
  remains the default after this call.
  
  @param      delim   the new delimiters.
  @return     the next token, after switching to the new delimiter set.
  @exception  NoSuchElementException  if there are no more tokens in this
  tokenizer's string.
  @exception NullPointerException if delim is <CODE>null</CODE>