Java Programming
Just write the toString method.
NOTE: Do not use/write a main method.
The toString method–>Provides a string representation of thecurrent Money object, in the form $mm.mm. Negative values have aminus sign before the dollar sign. Zero dollar amounts arerepresented with one zero between the dollar sign and the decimalpoint. Cents that are multiples of 10 still show two decimalplaces. (Examples: $12.34, -$6.50, $0.99, -$0.99, $0.00)
@return the string representation
Rules
A negative value is represented with both dollars andcents.
Example –> If a new money object is created with 7 dollars and-25 cents, it should be converted to 6 dollar and 75 cents.
Adding and subtracting
PayPal Gateway not configured
PayPal Gateway not configured