class Withdrawer implements Runnable { private Account account; public Withdrawer(Account acct) { account = acct; } public void run() { try { for (int i = 0; i < 10; i++) { account.withdraw(100); } } catch (InterruptedException e) { } System.out.println("Done withdrawing"); } }