public static UserInputData getElectionOptionInput(int numberOfElectionOptions)
	{
		Console console = System.console();
		System.out.println("Number of canditates is: " + numberOfElectionOptions);
		String input = "";
		int electionOptionId;
		UserInputData userData = new UserInputData();
		
		while(!isElectionOptionId(input, numberOfElectionOptions)) {
			System.out.println("Enter the ID of the candidate or party that you want to vote for:");
			input = console.readLine();
			if(!isElectionOptionId(input, numberOfElectionOptions)) {
				System.out.println("The input does not match any legal election option IDs.\n");
			}
		}
		
		electionOptionId = Integer.parseInt(input);
		
		userData.setElectionOptionId(electionOptionId);
		return userData;
	}