All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.roguewave.examples.money.currency.v1_0.MoneyCalculatorExample

java.lang.Object
   |
   +----com.roguewave.examples.money.currency.v1_0.MoneyCalculatorExample

public class MoneyCalculatorExample
extends Object
Example which reads in an 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.

Author:
Trevor Misfeldt
See Also:
ExchangeRateTable, EuroGroup, ExchangeFactory, Money, MoneyCalculator

Constructor Index

 o MoneyCalculatorExample()

Method Index

 o main(String[])
This example must be run from the directory containing the data text files.

Constructors

 o MoneyCalculatorExample
 public MoneyCalculatorExample()

Methods

 o main
 public static void main(String args[])
This example must be run from the directory containing the data text files. Run program by using this command:

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