public static int choose(String question, String... answers) {
		
		System.out.println();
		System.out.println(question);
		for (int i = 0; i < answers.length; i++) {
			System.out.println((i + 1) + ": " + answers[i]);
		}		
		
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
		int answer = 0;
		while (answer == 0) {
		    try {
		    	System.out.print("Answer: ");
				 String s = bufferedReader.readLine();
				 answer = Integer.parseInt(s);
				 if (answer <= 0 || answer > answers.length) {
					 answer = 0;
					 throw new Exception();					 
				 }
			} catch (Exception e) {
				System.out.println("The given answer is not valid. Please choose a number between 1 and " 
					+ answers.length + ".");
			}
		}
		System.out.println();
		return answer;
	    
	}