public static void main(String args[]) {
		Scanner inFile = null;
		try {
			// Create a scanner to read the file, file name is parameter
			inFile = new Scanner(new File(System.getProperty("user.dir") + "/src/Files/numsort.dat"));
		} catch (FileNotFoundException e) {
			System.out.println("File not found!");
			// Stop program if no file found
			System.exit(0);
		}

		//get info from file
		ArrayList<Integer> unsorted = new ArrayList<Integer>();
		while (inFile.hasNext()) {
			unsorted.add(inFile.nextInt());
		}

		//ouput original list
		System.out.println("Original List:");
		for (int i = 0; i < unsorted.size(); i++) {
			System.out.print(unsorted.get(i) + "\t");
			if ((i + 1) % 10 == 0) {
				System.out.print("\n");
			}
		}

		//output sorted list
		System.out.println("Sorted List:");
		ArrayList<Integer> sorted = sort(unsorted);
		for (int i = 0; i < sorted.size(); i++) {
			System.out.print(sorted.get(i) + "\t");
			if ((i + 1) % 10 == 0) {
				System.out.print("\n");
			}
		}

		System.out.println();
	}