All Packages Class Hierarchy
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
_
Index of all Fields and Methods
- add(Coin).
Method in class Purse
- Adds a coin to the purse
- Coin(String, double).
Constructor for class Coin
- Creates a coin with given name and value.
- count().
Method in class Purse
- Counts the number of coins in the purse.
- count(Coin).
Method in class Purse
- Counts the number of coins in the purse that match a given coin.
- equals(Coin).
Method in class Coin
- Returns true if the coin passed has the same name and value
as this coin.
- find(Coin).
Method in class Purse
- Tests whether the purse has a coin that matches a given coin.
- getMaximum().
Method in class Purse
- Finds the coin with teh largest value.
- getTotal().
Method in class Purse
- Get the total value of the coins in the purse.
- getValue().
Method in class Coin
- Returns the value of the coin.
- main(String[]).
Static method in class PurseTest
-
- Purse().
Constructor for class Purse
- constructs an empty purse
- PurseTest().
Constructor for class PurseTest
-
- toString().
Method in class Coin
- Returns the name of the coin.