Asked by Steven Anne Gustilo on Sep 27, 2024
You may omit the else part of an if-else statement if no alternative action is required.
If-else Statement
A control flow statement that executes a block of code if a specified condition is true, and another block if the condition is false.
- Become familiar with Java's control statements, covering loops and conditional expressions.
Learning Objectives
- Become familiar with Java's control statements, covering loops and conditional expressions.