paramprompt The prompt to show to the user. Must not be null.paramchoices holds all input values that are allowed. Must not be null. super(prompt); if (choices == null) { throw new IllegalArgumentException("choices must not be null"); } this.choices = choices;
super(prompt); if (choices == null) { throw new IllegalArgumentException("choices must not be null"); } this.choices = choices;
returnThe possible values. return choices;
return choices;
returntrue if the input is one of the allowed values. return choices.contains(getInput()) || ("".equals(getInput()) && getDefaultValue() != null);
return choices.contains(getInput()) || ("".equals(getInput()) && getDefaultValue() != null);