QueryThread thread = null;
QueryThread threads[] = new QueryThread[PARALLEL_THREADS];
	private final void testQuery(String queryFile) {		try {			File f = new File(queryFile);			if (!f.canRead()) {				System.err.println("can't read query file: " + queryFile);				return;			}			BufferedReader reader = new BufferedReader(new FileReader(f));			String line;			ArrayList queries = new ArrayList(10);			QueryThread thread = null;			while ((line = reader.readLine()) != null)				queries.add(line);			for (int i = 0; i < PARALLEL_THREADS; i++) {				thread = new QueryThread(queries);				thread.setName("QueryThread" + i);				thread.start();			}			try {				thread.join();			} catch (InterruptedException e) {			}		} catch (FileNotFoundException e) {			System.err.println("ERROR: " + e);		} catch (IOException e) {			System.err.println("ERROR: " + e);		}	}