best way to parseDouble with comma as decimal separator?
<pre><code>String p="1,234";
Double d=Double.valueOf(p); 
System.out.println(d);
</code></pre>

<p>return a error.</p>

<p>what the besy way to get <code>1.234</code> ?</p>

<p>better than: <code>p=p.replaceAll(",",".");</code></p>

<p>thanks a lot :)</p>
