I found a Java library which is open source and commercial friendly that's useful in reading and writing CSV - comma separated values. It's the opencsv. You can browse through its API at: opencsv api.
I thought that I need to create my own parser but then this library was just enough for what I needed. Oh if you want to check out everything about opencsv here is the link for samples and documentation : opencsv documentation and samples. This project is actually hosted in sourceforge.