Take a look at the java.text.DecimalFormat class. You can specify a format, which might include commas or decimal points or parenthesis (for negative number), and number of digits after the decimal point.
posted 14 years ago
Thank you very much for the reply. I would take a look at it.
SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)