A good answer might be:

The test part of the loop can use the OR operator to allow several choices.

Boolean Expression
in a Loop's Test

The test part of a loop (any of the three varieties) is a boolean expression. We want a boolean expression that evaluates to true if the user enters:

  • yes
  • YES
  • Y
  • y
and evaluates to false for anything else. Here is a near-complete expression:
chars.equals( "yes" ) ______ chars.equals( "YES" ) ______  
chars.equals( "y" ) ______  chars.equals( "Y" ) 

QUESTION 8:

Fill in the blanks.

Click Here after you have answered the question