Package java.util
Class StringTokenizer
int countTokens()
_INSERT_METHOD_SIGNATURE_HERE_
Description:
The countTokens method calculates the number of times that this tokenizer's nextToken method can be called before is generates an exception. The current position is not advanced.
Example
StringTokenizer strTok = new StringTokenizer("Hello World\rThis is a\t\ttest string!\n");
Logger.log("count of tokens: " + strTok.countTokens());
The example above iterates as long as tokens available from the specified tokenizer string.