I have a requirement where i need to wrap all elements with quote character.
I am using CSVWriter to writer the lines
CSVWriter writer = new CSVWriter(new FileWriter(rptFileName),`CSVWriter.DEFAULT_SEPARATOR, CSVWriter.DEFAULT_QUOTE_CHARACTER);
When an element is a empty string then it wraps the quote and if it is null then it does not ad the quote character.
so mu output become like this.
"ABC",,"","DEF"
which i want like
"ABC","","","DEF"
Here 2nd element is null and 3rd element is empty string.
Is there a way in OpenCSV to achieve this without manually intervention?