File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes parsing strings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "parsing strings" Watch "parsing strings" New topic

parsing strings

Randy Trover
Ranch Hand

Joined: Feb 26, 2001
Posts: 34

Hi all,
I need to parse out the individual tokens from a comma delineated string. "123,23,,34,36" ect. Does java give you a string handling function to do this or do I have to write my own? Thanks for any help.

Junilu Lacar

Joined: Feb 26, 2001
Posts: 6529

the java.util.StringTokenizer will do the job for you.

Junilu - [How to Ask Questions] [How to Answer Questions]
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986


Please ignore post, I have no idea what I am talking about.
I agree. Here's the link:
subject: parsing strings
It's not a secret anymore!