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