FileDocCategorySizeDatePackage
CurrencyExchange.javaAPI DocExample624Tue Dec 12 18:58:12 GMT 2000None

CurrencyExchange

public class CurrencyExchange extends Object

Fields Summary
static double
FRANCS_PER_DOLLAR
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


         
        DecimalFormat formatter = new DecimalFormat("###,###.00");
        double numFrancs = 10000000.0;
	double numDollars = numFrancs/FRANCS_PER_DOLLAR;

        System.out.println(formatter.format(numFrancs)
                           + "FF is equal to $"
                           + formatter.format(numDollars)
                           + ".");