Click to See Complete Forum and Search --> : delimeters for StringTokenizer


Flesh
April 24th, 2003, 12:44 PM
I know how to add more than one delimeter. But, what if a delimeter is a string and not just a single character?

For example: I want this string to be a delimeter: "time=". I do not want every character to become a delimeter.

viravan
April 24th, 2003, 03:31 PM
Originally posted by Flesh
I know how to add more than one delimeter. But, what if a delimeter is a string and not just a single character?

For example: I want this string to be a delimeter: "time=". I do not want every character to become a delimeter.

You do it the same way.... check out the API at the link shown below:

http://java.sun.com/j2se/1.4.2/docs/api/java/util/StringTokenizer.html

:)

V.V.