Example #1
0
 public void run() {
   Acount acc = new Acount();
   acc.withdraw_Card();
   try {
     Thread.sleep(1000);
   } catch (Exception e) {
     e.printStackTrace();
   }
   acc.withdraw_Cheque();
 }
Example #2
0
 @Override
 public void run() {
   for (int i = 0; i < 100; i++) {
     acount.subBalance(1);
   }
 }