public static void main(String[] args) {
		File inputFile = new File("QuickSort.txt");
		String inputFilePath = inputFile.getAbsolutePath();

		// read and parse input file
		try {
			String strLine = "";
			int count = 0;
			FileInputStream fstream = new FileInputStream(inputFilePath);
			DataInputStream in = new DataInputStream(fstream);
			BufferedReader br = new BufferedReader(new InputStreamReader(in));
			while ((strLine = br.readLine()) != null) {
				a[count ++] = Integer.parseInt(strLine);
			}

			br.close();
			in.close();
			fstream.close();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}

		sort(0, a.length - 1);

		for (int i = 0; i < a.length; i++) {
			//System.out.println(a[i]);
		}

		System.out.println(comparisonsCount);
	}