All pastes #391785 Raw Edit

Something

public text v1 · immutable
·published 2007-03-12 11:47 UTC
rendered paste body

public class Bank {
  public static Account[] accounts = new Account[100];
  public static int counter = 0;
  
  public Bank() {
  }
  
  public static void addAccount(String name, String address, String telephoneNumber, String accountNumber, int age) 
  {
    accounts[counter].setCustomer(name, address, telephoneNumber, accountNumber, age);
    counter++;
  }
  
  public static int getAccount()
  {
    
  }
  
  public static void makeWithdrawal(double amount, String accountNumber, String date )
  {
    Transaction.processTransaction(amount, accountNumber, date, "Withdrawal");
  }
  
  public static void makeDeposit(double amount, String accountNumber, String date )
  {
    Transaction.processTransaction(amount, accountNumber, date, "Deposit");
  }


}