E
El Guerrero del Interfaz
Hi everybody,
First of all, sorry if that's a stupid question but I'm a newbie
with Java.
I'm writing a parser that needs the functionality of the
"StringTokenizer" method. That is, I want a method that not only
returns the tokens but also the delimiters found. But in the Java doc
I've seen that "StringTokenizer" is being phased out and that "split"
should be used instead. The problem is that in "split" I did not find
the possibility to return the delimiters together with the tokens as
"StringTokenizer" does. Is that so or am I just too dumb to find that
option? And if it is, is there a workaround or do I have to use the
old "StringTokenizer" to do what I want to do?
Thanx and bye.
First of all, sorry if that's a stupid question but I'm a newbie
with Java.
I'm writing a parser that needs the functionality of the
"StringTokenizer" method. That is, I want a method that not only
returns the tokens but also the delimiters found. But in the Java doc
I've seen that "StringTokenizer" is being phased out and that "split"
should be used instead. The problem is that in "split" I did not find
the possibility to return the delimiters together with the tokens as
"StringTokenizer" does. Is that so or am I just too dumb to find that
option? And if it is, is there a workaround or do I have to use the
old "StringTokenizer" to do what I want to do?
Thanx and bye.