Yes, it did compile when the following statement was placed in the Account class:
System.out.println("Account Owner2 Balance with interest:" +
owner[1].add_monthly_interest());
Type: Posts; User: UM68
Yes, it did compile when the following statement was placed in the Account class:
System.out.println("Account Owner2 Balance with interest:" +
owner[1].add_monthly_interest());
I tried putting a add_monthly_interest() method in the Account class. Declared it public so it could be inherited by the SavingsAccount class. I tried to make it so the method does nothing in the...
I'm able to compile and run the program but I think it runs for the wrong reasons. The add_monthly_interest() method for calculating the balance with interest was suppose to take place in the...
System.println("Error. Balance not enough to cover withdraw.");
and
Getting "cannot find symbol" errors at 66 and 116. I don't see any spelling errors and the variables are declared, so not sure why I'm getting the errors.
This program prints out: current account...
I did post the exact error message and the line which it applies to. The exact error is: "java:40:error: ; expected"
I have a ; there, so I'm not sure why it's flagging that code saying it's not...
Still getting the error. I made the changes on the lines you pointed out, eventhough they weren't referenced in any of the errors. Still getting "java:40:error: ; expected". I concatenated and...
I modified the println statements
//Display the amount contained in the case selected by user
//Display the amount contained in the case selected by user
System.out.println("The case...
I just tried to compile again. That's the only error received.
I added comments codes for the referenced line:
//Display the amount contained in the case selected by user
System.out.println("The case you selected contains: " + val(arr[position]));
I'm getting the following error when trying to compile my code: "java:38:error: ; expected"
I checked the line of the error referenced and I do have an ;
import java.util.Random;
import...