And yet, I am lost. I need help making this method work. Everything before the comment was provided by the instructor but the rest of this method is giving me loads of trouble. I am going to try to explain this as best as I can, I am way too new at this
On this line towards the end..
out.printBalance(balance);
I am getting the error "balance cannot be resolved to a variable".
The printBalance method in the Output class was declared as
public void printBalance(double balance)
Here is my code
public BankAccount handleLogin()
{
BankAccount account = null;
String accountNumber = input.readAccountNumber();
String pin = input.readPin();
boolean valid = validateLogin(accountNumber, pin);
//************************************************** ****
//Write the if statement that when valid, the beginning
//balance is read and the account object is created.
//**************+*********************************** *****
Output out = new Output();
if (valid)
{
out.printBalance(balance);
}
return account;
}