StringTokenizer.nextToken

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>

  1. string nextToken()
  2. string nextToken(string delim)
    class StringTokenizer
    string
    nextToken
    (
    string delim
    )

Meta