previous | start | next

run Method of DepositThread

public void run()
{
   try
   {
      for (int i = 1; i <= REPETITIONS && !isInterrupted(); i++)
      {
         account.deposit(amount);
         sleep(DELAY);
       }
    }
    catch (InterruptedException exception)
    {
    }
 }

 



previous | start | next