Java: if-else Statement
The if-else statement is the decision-making statement, Use with conditional expression execution result is true then only the block associated with if statement will execute otherwise control will reach to else block.
Syntax:
if(test_expression) { //execute your code } else { //execute your code }
Note : In if-elsestatement else is an optional clause. Below is the format without the else…
View On WordPress














