Parse string to float/double : <p>I am getting values from jTable and putting it in my DataBase (MySQL). In my DB table there is column PAYMENT that is double. When I try to put values from my jTable there is a problem with it:</p>

<pre><code>String payment=(String) jTable1.getValueAt(row, 2);
double pay=double .parseDouble (payment);
........
pst.setDouble(3, zar);
</code></pre>

<p>I am getting this exception: </p>

<blockquote>
  <p>Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "84,21834324"</p>
</blockquote>

<p>How can I put this column from jTable as double in my DB table?
P.S.: I tried with float too.</p>
