public static void printMap(){

		//Makes HashMap Alphabetical
		TreeMap<String, String> printMap= new TreeMap();
		printMap.putAll(invertedIndex);
		
		try {

			PrintWriter writer = new PrintWriter("output.txt", "UTF-8");
			// Used To Print Out map
			Iterator it = printMap.keySet().iterator();
			Object printS;
			while (it.hasNext()) {
				printS = it.next();
				// Print To Console
				//System.out.println(printS + " " + printMap.get(printS));
				// Print To File
				 writer.println(printS + " " + printMap.get(printS));
			}
			writer.close();
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}