007 - Java Selection Statement
007 - Java Selection Statement
Java if statement
The Java if statement tests the condition.
It executes the if block if condition is true.
Syntax:
if(condition){
//code to be executed
}
Java Program to demonstrate the use of if statement.