See Also: StringTokenizer Members
Breaks a string into tokens; new code should probably use Java.Lang.String.Split(string).
java Example
// Legacy code: StringTokenizer st = new StringTokenizer("a:b:c", ":"); while (st.hasMoreTokens()) { System.err.println(st.nextToken()); } // New code: for (String token : "a:b:c".split(":")) { System.err.println(token); }