|
Conditional statements
allow the programmer to specify that a block of code should only be executed if a particular condition is met.
ifThe syntax of an if statement in Java is as follows: |