private FileDeletionThread[] startThreads(int thdCount, Path file) throws IOException { FileDeletionThread[] result = new FileDeletionThread[thdCount]; for (int i = 0; i < thdCount; i++) { result[i] = new FileDeletionThread(i, fs, file); } for (FileDeletionThread thd : result) { thd.start(); } return result; }