Q:

java library for outputting to csv- what are the special cases that need to be handled, to output data to csv format

I am looking for a (preferably)free Java library that outputs data stored in variable (viz list of list) to a csv file.
I saw a commercial library by RiceBridge where they talk of all kinds of special cases that their library takes care of -- is there any free library that also does the same?
Alternatively, what are the special cases that I should handle, if I want to create my own csv writer library?

A:

Reading csv is difficult, writing is not. You can just enquote all values with double quotes and replace double quotes in your field values by double double quotes.

