Look at how the itsJohn variable is set. It compares a variable's contents against a String constant.
For your problem, the variable would be what the user entered and the String constant: "yes"
Type: Posts; User: Norm
Look at how the itsJohn variable is set. It compares a variable's contents against a String constant.
For your problem, the variable would be what the user entered and the String constant: "yes"
I gave two examples of how to set boolean variables using a boolean expression. Did you understand how those statements work?
What variable do you want to set?
With what conditions do you want...
The values of a and b must be set by some assignment statement: (a & b are poor choices for variable names. They have no meaning. Use a name that represents the value they would hold. For...