public class PriceConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
PriceConverter()
Constructor for PriceConverter.
|
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
convertBtwnCurrrency(java.math.BigDecimal price,
java.lang.String convertFrom,
java.lang.String convertTo)
This method converts the input from one currency to another.
|
public static final java.lang.String COPYRIGHT
public java.math.BigDecimal convertBtwnCurrrency(java.math.BigDecimal price, java.lang.String convertFrom, java.lang.String convertTo)
price
- The amount to convert.convertFrom
- The currency of the amount to convert from.convertTo
- The currency of the amount to convert to.