title: how to remove a comma in a string
body: <p>I have a string that shows a number with a comma separator like this: </p>
  
  <pre><code>DecimalFormat formatter = new DecimalFormat("#,###.000000");
  String toDouble=formatter.format(amount);
  </code></pre>
  
  <p>Now I want to remove commas in BO class to do arithmetic operations. I used this format: </p>
  
  <pre><code>StrCash_price_deal = StrCash_price_deal.replace(",", "");
  double d = Double.valueOf(StrCash_price_deal.trim()).doubleValue();
  </code></pre>
  
  <p>but it changes the value to zero!!!
  my technology is struts2</p>