import java.util.concurrent.*; /** * Created with IntelliJ IDEA. * User: dmytro.zaytsev * Date: 4/1/14 * Time: 11:43 PM * To change this template use File | Settings | File Templates. */ import java.util.concurrent.ExecutorService; public class NewOperations { static ExecutorService executorService = Executors.newFixedThreadPool(3); // static ExecutorService scheduler = ; public static void main(String[] args) { final BankAccount first = new BankAccount(10000,1); BankAccount second = new BankAccount(100, 2); Executors.newScheduledThreadPool(1).schedule(new Runnable() { @Override public void run() { System.out.println("<<