Currently, when the InputUtility method getYesNo is used, it forces the user to enter a "yes or no" predicate and hope that the user's predicate has a "yes" value that matches the YES list constant. Instead, the utility should use the internal yesOrNo predicate to make sure only a positive or negative response was inputted.
Currently, when the
InputUtility
methodgetYesNo
is used, it forces the user to enter a "yes or no" predicate and hope that the user's predicate has a "yes" value that matches theYES
list constant. Instead, the utility should use the internalyesOrNo
predicate to make sure only a positive or negative response was inputted.