Reading values from main file
I have a savings account assignment which includes the following step:
a public method of the appropriate type called equals which will compare two accounts and return true if both savingsBalance values are the same - accurate to 4 digits after the decimal point.
I have it working with a boolean method in the main file, but was wondering if there is a way for a method in the program file to get the values from the main file so that the boolean method can be in the program file with the rest of my methods.
Re: Savings account balance comparison code.
Add semi-colon to the end of:
String acctTwo = acct2.currentBalance()