Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Stringtokenizer and blank tokens

843835Feb 14 2002 — edited Feb 14 2002
if I had the following string:

,,test

and tokenized it on "," there would only be one token "test". How can I have the blank tokens show up as a null (or some other token)?

I do not want the empty tokens to be discarded, but counted so I know they were blank.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2002
Added on Feb 14 2002
2 comments
157 views