The Coin class has two attributes: Name of coin and value of coin. You will need methods to return the name and value of the coin, turn the coin into a string, and override the equals method. Your constructor should take two values, name of coin and it's corresponding value.
The Purse class has one attribute: An ArrayList to store Coins. You will need methods to add a coin to the purse, return the total value of all the coins in the purse, return how many coins are in the purse, determine if a coin is in the purse, count the number of specific coins are in the purse, and find the coin with the largest value in the purse. Override the toString method, and have a default constructor that creates an empty purse.
Download PurseTest.java to test your classes. Before writing your classes, check the names of the method calls from the PurseTest.java program.
Write the Person class that is menu driven that allows the Person perform all of the functionality of the purse.
Look at the Java docs for detailed information about the methods for each class: