A G M S T

A

add(int) - Method in class MyCurrency
This method adds an integer to the currency amount.
add(MyCurrency) - Method in class MyCurrency
This method adds the amount of one MyCurrency object to the amount of the current MyCurrency object.

G

getCents() - Method in class MyCurrency
The getCents method returns the cents portion only.
getDollars() - Method in class MyCurrency
The getDollars method returns the dollars portion only.

M

MyCurrency - class MyCurrency.
This class is intended to be used for currency items so as to avoid the loss-of-precision problems so common to floats and doubles.
MyCurrency() - Constructor for class MyCurrency
MyCurrency default constructor initializes the currency amount to $0.00
MyCurrency(int, int) - Constructor for class MyCurrency
MyCurrency overloaded constructor allows the user to specify dollars and cents amounts.

S

setAmount(int, int) - Method in class MyCurrency
The setCurrency method allows the user to change the dollar and cents amounts.

T

toDouble() - Method in class MyCurrency
The toDouble method returns the currency amount as a double.
toString() - Method in class MyCurrency
The toString method returns the currency amount as a String, with dollars sign and decimal point.

A G M S T