public int selectFromList(String prompt, List<String> options, int defaultOption) {
		if (prompt != null) {
			output.println(prompt);
		}
		Iterator<String> iterator = options.iterator();
		int i = 1;
		while (iterator.hasNext()) {
			String option = iterator.next();
			output.println(i + " - " + option);
			i++;
		}
		while (true) {
			output.print(PROMPT);
			InputStreamReader inReader = new InputStreamReader(System.in);
			BufferedReader stdin = new BufferedReader(inReader);
			try {
				String line = stdin.readLine();
				int selection = 0;
				if (line == null || line.length() == 0) selection = defaultOption;
				else selection = Integer.parseInt(line);
				if (selection >= 1 && selection <= options.size()) {
					return selection;
				}
			} catch (IOException ioe) {
				// do nothing
			} catch (NumberFormatException nfe) {
				// do nothing
			}
			output.println("Invalid option");
		}
	}