E - type of tokenspublic interface Tokenizer<E>
StringTokenizer| Modifier and Type | Method and Description |
|---|---|
int |
countTokens()
Indicates how many tokens are left.
|
boolean |
hasMoreTokens()
Indicates if more tokens are available.
|
E |
nextToken()
Returns the next token.
|
boolean hasMoreTokens()
E nextToken()
NoSuchElementException - if no more tokens availableint countTokens()
nextToken() will cause the count to reduce.Copyright © 2020. All Rights Reserved.