public static void main (String[] args){
		Scanner reader = new Scanner(System.in);
		/*Runs main method repeatedly until user
		 * requests otherwise*/
		char loop = 'y';
		while (loop == 'y'){
		Scanner sc = new Scanner(System.in);
		Random rand = new Random();
		List<Integer> array = new ArrayList<Integer>();
		int input;
		int data;
		
		System.out.println("--------HEAP SORT--------");
		System.out.print("How many random integers would you like in your heap? : ");
		input = sc.nextInt();
		/*Adds random integer into array*/
		for(int i=0; i < input; i++){
			data = rand.nextInt(100);
			array.add(data);
		}
		/*Output*/
		hashsort(array);
		System.out.println("\nOriginal array:");
		printAsArray(original);
		System.out.println("\nSorted array:");
		printAsArray(array);
		System.out.println("\nArray as tree:");
		printAsTree(array, 1);
		System.out.print("Do you wish to run the program again? (y or n): ");
		loop = reader.next().trim().charAt(0);
		}
		reader.close();
	}