go to previous page   go to home page   go to next page

Answer:

Of course, a given locale uses only one of these characters for this purpose.


Integer Formatting Applet

Here is an applet that formats an integer using DecimalFormat.format(). Enter an integer (as characters) into the text box and click on the button.

If you enter characters that can't be converted to an int, the applet prints an error message. Otherwise, the applet converts your characters into an int and then uses DecimalFormat.format() to convert the int back into characters, which are then printed in the Result text box.

The input itself must not be formatted, so strings may not contain commas, dots, or spaces. Also, the integer must not be too big.


QUESTION 4:

How would you prefer to see this number displayed:

12345.6789