title: Creating headers for CSV file
body: <p>I'm writing a CSV file using the <a href="http://opencsv.sourceforge.net" rel="noreferrer">Opencsv</a> library and need to add headers to my file. The file is created and the headers are inserted, but <strong>all the headers in same cell</strong>.</p>
  
  <pre><code>csvFile.createNewFile();
  CSVWriter csvWrite = new CSVWriter(new FileWriter(csvFile));
  String heading = "eid,name,vid,emp_id,balance_amt,handover_to,entry_date \n";
  csvWrite.writeNext(new String[]{heading});
  </code></pre>