Anonymous
public unlisted java v1 · immutablefor(int i = 0; i < 10; ++i) { Thread thread = new Thread(runnableObject); try { thread.start(); threadPool.add(thread); } catch(Exception e) { /* handle exception */ }}for(int i = 0; i < 10; ++i) { Thread thread = new Thread(runnableObject); try { thread.start(); threadPool.add(thread); } catch(Exception e) { /* handle exception */ }}