static void joinThreads(ThreadClass[] threadArray) throws InterruptedException { for (ThreadClass tc : threadArray) { tc.join(); } }
static void startThreads(ThreadClass[] threadArray) { for (ThreadClass tc : threadArray) { tc.start(); } }