How to convert exponents in a csv file from Java
<p>I am printing some data into a CSV file using <code>Apache Commns CSV</code>. One of the fields contains 15 digit number and is of type <code>String</code>. This field prints as exponential number in CSV instead of a complete number. I know <code>Excel</code> does that but is there a way in java to print it as a complete number. </p>

<p>I am not doing anything special. Initially I thought that <code>Commons CSV</code> will take care of it. </p>

<pre><code>public void createCSV(){
   inputStream = new FileInputStream("fileName");
   fileWriter = new FileWriter("fileName");
   csvFileFormat = CSVFormat.Excel.withHeader("header1", "header2");
   csvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);

   for(List&lt;UiIntegrationDTO dto: myList&gt;){
   String csvData = dto.getPolicyNumber();
   csvFilePrinter.PrintRecord(csvData);
   }
}
</code></pre>