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

A

add(Coin). Method in class Purse
Adds a coin to the purse

C

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.

E

equals(Coin). Method in class Coin
Returns true if the coin passed has the same name and value as this coin.

F

find(Coin). Method in class Purse
Tests whether the purse has a coin that matches a given coin.

G

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.

M

main(String[]). Static method in class PurseTest

P

Purse(). Constructor for class Purse
constructs an empty purse
PurseTest(). Constructor for class PurseTest

T

toString(). Method in class Coin
Returns the name of the coin.