21.10
java.util.StringTokenizer
THE PACKAGE JAVA.UTIL
21.10.1
public StringTokenizer(String str, String delim,
boolean returnTokens)
This constructor initializes a newly created
StringTokenizer
 so that it will rec 
ognize tokens within the given string
str
. All characters in the string
delim
 will
be considered delimiters. The argument
returnTokens
 specifies whether delim 
iter characters themselves are to be considered tokens.
21.10.2
public StringTokenizer(String str, String delim)
This constructor initializes a newly created
StringTokenizer
 so that it will rec 
ognize tokens within the given string
str
. All characters in the string
delim
 will
be considered delimiters. Delimiter characters themselves will not be treated as
tokens.
21.10.3
public StringTokenizer(String str)
This constructor initializes a newly created
StringTokenizer
 so that it will rec 
ognize tokens within the given string
str
. All whitespace characters ( 20.5.19)
will be considered delimiters. Delimiter characters themselves will not be treated
as tokens.
21.10.4
public boolean hasMoreTokens()
The result is
true
 if and only if there is at least one token in the string after the
current position. If this method returns
true
, then a subsequent call to
nextToken
with no argument will successfully return a token.
21.10.5
public String nextToken()
The next token in the string after the current position is returned. The current posi 
tion is advanced beyond the recognized token.
21.10.6
public String nextToken(String delim)
First, the set of characters considered to be delimiters by this
StringTokenizer
is changed to be the characters in the string
delim
. Then the next token in the
string after the current position is returned. The current position is advanced
beyond the recognized token.
652






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved