public static void main(String[] args) { // Create a thread pool with two threads ExecutorService executor = Executors.newFixedThreadPool(2); System.out.println("Thread 1\t\tThread 2\t\tBalance"); executor.execute(new DepositTask()); executor.execute(new WithDrawTask()); executor.shutdown(); }