Home / DeveloperSection / Interviews / what is String Tokenizer?
You haven’t finished your post yet. Are you sure you want to leave and discard your draft?
Can you answer this question?
Amit Singh
A StringTokenizer constructor takes a string to break into tokens and returns a StringTokenizer object for that string. for example:
StringTokenizer st = new StringTokenizer("check the class"); while (st.hasMoreTokens()) { System.out.println(st.nextToken()); }
output:
check
the
class
You have need login or register for voting of answers or question.
Amit Singh
10-Jan-2011A StringTokenizer constructor takes a string to break into tokens and returns a StringTokenizer object for that string.
for example:
output:
check
the
class