How to store BigDecimal in Excel file Using Java
<pre><code>Below is code
 while(resultSet.next())
  {
  Hrow=spreadsheet.createRow(i);

cell_1=Hrow.createCell(1);
cell_1.setCellValue((RichTextString) resultSet.getBigDecimal("longitude"));
cell_1=Hrow.createCell(2);
cell_1.setCellValue( (RichTextString) resultSet.getBigDecimal("latitude"));
cell_1=Hrow.createCell(3);
cell_1.setCellValue((RichTextString) resultSet.getBigDecimal("indexValueO"));

  i++;
 }
</code></pre>

<p>m fetching the data from mysql 
why m getting Class cast exception when trying to do with RichTextString ..</p>