Hexo java 1

package com.mybank.test;

import com.mybank.domain.Account;
import com.mybank.domain.Bank;
import com.mybank.domain.Customer;

public class TestBanking{

public static void main(String[] args) {
Bank bank= new Bank();
bank.addCustomer(“a”,”b”);
Customer cus1 = bank.getCusyomer(0);
cus1.addAccount(1000);
cus1.addAccount(10000);

bank.addCustomer(“c”, “d”);
Customer cus2= bank.getCusyomer(1);
cus2.addAccount(2000);
cus2.addAccount(20000);

for(int i=0;i<bank.getnumberofCustomer();i++)
{
Customer cus = bank.getCusyomer(i);
for(int j=0;j<cus.getNumberOfAccounts();j++){
Account acc = cus.getAccount(j);
acc.deposit(500);
acc.withdraw(500);
//acc.deposit(Math.random()50000);
//acc.withdraw(Math.random()
10000);
System.out.println(cus+”,”+acc.getBalance());

}

}
}

}