Tag: conditional statement
-
Conditional statements
Java If-else Statement: The Java if statement is used to test the condition. It checks boolean condition: true or false. There are various types of if statement in Java. if: if statement is the most simple decision-making statement. It is used to decide whether a certain statement or block of statements will be executed or not i.e if a certain condition is true…