This is a stmt from K&B book...
If an else statement is used and the expression evaluates to false, then the code following the else will be performed. If the else is not used, then none of the code associated with the if statement will execute.
I thought single if statements do work properly in
Java. Am I wrong or does every if statment require an else attached with it?
TIA