title: java.math.BigDecimal cannot be cast to java.lang.String?
body: <p><strong><em>I am trying to add row values of datatype(money) in which zeros after decimal are automatically formed in Jtable like these
  55.0000
  28.0000
  60.0000
  20.0000
  50.0000</em></strong></p>
  
  <p>on runtime log showing this error</p>
  
  <blockquote>
    <p>java.math.BigDecimal cannot be cast to java.lang.String</p>
  </blockquote>
  
  <p>Here is the code for rows addition from Jtable </p>
  
  <pre><code>        double total = 0;
          for(int i = 0; i&lt;table.getRowCount(); i++){
              double amount = Double.parseDouble((String) table.getValueAt(1, 6) );
              total+=amount;
          }
          totalSum.setText(String.valueOf(total));
  </code></pre>
  
  <p>*</p>
  
  <h2>Is there any way to add float type values??</h2>
  
  <ul>
  * 
  </ul>