Your class has the following variable:
BankAccount ba = account;
That doesn't make any sense. You never declared "i", so your program doesn't know what "i" is. In addition, lets imagine that you had declared i. For example, consider the following code:
BankAccount []account = new BankAccount[10];
BankAccount ba = account[0];
That assigns the value at account[0] to ba. Since the account array is empty, ba probably now contains null. Regardless of what ba contains, it is useless.