public static String mostFrequent(String fileName) throws FileNotFoundException { // Tell Java that this method could throw a FileNotFoundException
		int[] frequencyList = letterFrequency(fileName); // Get the frequency of the letters in the file
		
		int max = frequencyList[0]; // Initialise the variable to represent the largest value to the first entry in the list of frequencies
		String maxChar = NUMBER_TO_LETTER.get(0); // I initialise maxChar with a call to NUMBER_TO_LETTER for consistency with other parts of the code
		
		for (int i = 1; i < 26; i ++) { // Loop from the second entry in the list of frequencies (we already covered the first one) to the last
			if (frequencyList[i] > max) { // If the current letter occurred more times in the input file than the previous maximum:
				max = frequencyList[i]; // Set the new maximum to the frequency of the current character
				
				maxChar = NUMBER_TO_LETTER.get(i); // Set the maximum letter to the current character
			}
		}
		
		return maxChar; // Return the character with the highest frequency
	}