
How do i use decimal format in java programming?
I have a practice problem that a user has to enter a number including decimals, then ask how many decimal places they would like to have to the right , and place commas and a dollar sign in the output statement. I know that I have to convert the int into a string and that is also confusing me too…. Any one who could help me i appreciate it. I also need to understand how to use the number Format and decimal format..
http://download.oracle.com/javase/1.4.2/docs/api/java/text/DecimalFormat.html
http://mindprod.com/jgloss/decimalformat.html
Read those two sites
http://www.homeworkjava.com — visit us