Significance of StringTokenizer class.- This class is used to break the string into tokens. - It is not distinguished between identifiers, numbers and quoted strings. - It is a simple way to break the string. - The 'java.util.StringTokenizer' package is used for 'StringTokenizer' class.
Following are the three constructors which are defined in the 'StringTokenizer' class:
1. StringTokenizer(String str) : Creates 'StringTokenizer' with specified string.
2. StringTokenizer(String str, String delim) : Creates 'StringTokenizer' with specified string and delimeter.
3. StringTokenizer(String str, String delim, boolean return_value) : Creates 'StringTokenizer' with specified string, delimeter and return value.
|