I managed to get someone to send me the Part 5 exercises but without the TCMBeans I can't tell what is wrong cos I am using Eclipse.
I hope someone can tell me how to overcome the error in this case:
The requirements as follows :
Let's create a method for the terminal that can be used to add money to a payment card. Recall that the payment that is received when adding money to the card is stored in the register. The basis for the method:
My question is at the Main Program public static void main(
String[]args) there is this line new PaymentCard(10) but eclipse is saying that
eatAffordably is int but the method contains a reference object PaymentCard so is there anything wrong with the program or how should I overcome the error ?
Thanks.