All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.roguewave.examples.money.currency.v1_0.MoneyCalculatorExample
ExchangeRateTable
and EuroGroup
to construct an ExchangeFactory
. This factory is then associated
with a MoneyCalculator
. The calculator is used to perform arithmetic
with different currency conversion policies and rounding methods.
public MoneyCalculatorExample()
public static void main(String args[])
java com.roguewave.examples.money.currency.v1_0.MoneyCalculatorExample
Output should appear as follows:
ITL 12823 + DEM 1.26 = DEM 14.194333503575076608784473953 ITL 12823 + DEM 1.26 = USD 8.674936887 ITL 12823 + DEM 1.26 = FRF 47.5635944945113199984484296814 ITL 12823 + DEM 1.26 = DEM 14.19 ITL 12823 + DEM 1.26 = USD 8.67 ITL 12823 + DEM 1.26 = FRF 47.56
All Packages Class Hierarchy This Package Previous Next Index