public class AccountDemo {
public static void main(String [] args) {
Account accountholder1, accountholder2, accountholder3;
accountholder1 = new Account(100, 10, 1000, "", "");
accountholder1.showData();
System.out.println(AccountDemo.numOfAccounts+" accounts opened");
accountholder2 = new Account(200, 20, 2000, "", "");
accountholder2.showData();
System.out.println(AccountDemo.numOfAccounts+" accounts opened");
accountholder3 = new Account(300, 30, 3000, "", "");
accountholder3.showData();
System.out.println(AccountDemo.numOfAccounts+" accounts opened");
}
}
On numOfAccounts
it keeps saying cannot find symbol - variable numOfAccounts
.