Re: 1)uses of random class 2)how to display numbers upto 2 decimal points
Posted By:
Ravi_Kesariraman
Posted On:
Sunday, April 10, 2005 10:04 PM
You can check on DecimalNumberFormat class for displaying numbers upto 2 decimal places.
new java.text.DecimalFormat("###0.00").format(i);
Note: I appreciate you spend a 'little' time on your own to find answers to such basic concepts before posting to the newsgroup.