public static void appendToQueue(String inputLine) {
public static synchronized void appendToQueue(String inputLine) {
    public static void appendToQueue(String inputLine) {    		File appendfile = new File(inputLine);    		Iterator ite = filequeue.iterator();    		boolean added = false;    		while(ite.hasNext()) {    			File file = (File) ite.next();    			if(file.getAbsoluteFile().equals(appendfile.getAbsoluteFile()))    					added = true;    		}        if(!added) {        		System.out.println("Adding file '"+inputLine+"' to appendQueue");        		filequeue.add(appendfile);        }    }