Java amount format
<p>I am having 156 amounts and when I am summing up to get the total amount the amount format is like <code>323E43.32</code> which I dont want but I want it in 344234.45 format. I got the individual amount in string and before performing any operation I have typcasted it to double value.</p>

<p>Is there a way to format a amount from <code>323E43.32</code> to <code>344234.45</code> in java?</p>

<p>Code Snippet:</p>

<pre><code>for (int i = 0; i &lt; numrows; i++)
{
    double temp=Double.parseDouble(orders.getString("AMOUNT"));
    totalAmount=totalAmount+temp;
    bean.setTotalAmount(totalAmount);
}
</code></pre>
