StringTokenizer.nextToken

StringTokenizer.nextToken

Class Overview | Class Members | This Package | All Packages

Syntax 1
public String nextToken()
Returns
the next token from this string tokenizer.
Description
Returns the next token from this string tokenizer.

Exceptions
NoSuchElementException if there are no more tokens in this tokenizer's string.



Syntax 2
public String nextToken( String delim )
Parameters
delim
the new delimiters.
Returns
the next token, after switching to the new delimiter set.
Description
Returns the next token in this string tokenizer's string. The new delimiter set remains the default after this call.

Exceptions
NoSuchElementException if there are no more tokens in this tokenizer's string.