A good answer might be:The || (or operator) is the appropriate choice: chars.equals( "yes" ) || chars.equals( "YES" ) || chars.equals( "y" ) || chars.equals( "Y" ) | |
Program with Alternatives
Since any one choice is all we need, the OR operation is the appropriate way
to combine the choices.
Here is the
| |
QUESTION 9:Do you wish to continue? Click Here after you have answered the question |