account = new int[ NO_ACCS ];
for( int i = 0; i < account.length; i++ )
{ account[i] = INIT_BAL;
}
noTransacts = 0;
currentState();
Methods Summary
public void
currentState()
int bal = 0;
for( int i=0; i < account.length; i++ )
{ bal += account[i];
}
System.out.println( "Transactions:\t" + noTransacts +
"\tTotal balance:\t" + bal );
Bank theBank = new Bank();
for( int i=0; i < NO_ACCS; i++ )
{ new TransactionGenerator( theBank, i ).start();
}
// Remove comment for Linux to simulate
// the time-slicing found in WindowsXX
new Switcher();