You use letters preceded by % characters in a
String to represent an output. So
%d will print out a decimal integer calue of how mush money
you should send me.
You can use different figures after the % to have the number take up a certain number of spaces, with or without leading 000 or +-.
%n is new line, and %6.2f is a fixed-point decimal number occupying six spaces, two after the decimal point (eg 123.45 takes up six spaces).
There are hundreds of different combinations available; look in the API spceification for the java.util.Formatter class.
[ April 17, 2006: Message edited by: Campbell Ritchie ]