public class Bank{
  public static void main(String[] args){
    // first decide on the capital and the line credits,
    // then
    // read from the user client id and what he wishes
    // if it leads to a safe state grant it, otherwise not.
    Banker b;
    int clients, capital;
    try {
      // requires start capital and number of clients.
      capital = 15;//Integer.parseInt(args[0]);
      clients = 3; //Integer.parseInt(args[1]);

      int credits[] = {4,8,2};

      b= new Banker(capital,clients);
      // start the credit lines
      for(int i =0; i<clients;i++){

	//b.startCreditLine(Integer.parseInt(args[i+2]),i);
	b.startCreditLine(credits[i],i);
	b.show();
      }
    }catch (NumberFormatException e) {}
  }
}
