The StringTokenizer class / base.StringTokenizer methods |
Returns the number of tokens left to be returned.
countTokens() RETURNING result INTEGER
Use the countTokens() method to count the number of tokens left to be returned by the string tokenizer.
This method can be used to know the number of tokens before processing the source string with the hasMoreTokens() and nextToken() methods.