Like the question says, how do I do this.
5 Answers
You could use StringTokenizer class. Here's an example.
3 Comments
Tarlog
This isn't a complete implementation. In CSV it's possible to escape using quotes. The provided example doesn't support this functionality.
Bala R
@Tarlog I did't say it was a complete implementation. It's just an example of how to use StringTokenizer in the OP's question context. StringTokenizer is one of the easier ways to go if you don't want to use any third party modules/libraries.
Tarlog
Yes, I understand: it's easy, but it doesn't work in this case. But it's easy... Oh yes: easy. But it doesn't work... Who cares, if it's easy?