The if loop in Java is a statement that a result will be checked and then different continues. Exactly how this works, you will learn in this Tip.
Java programming: The If statement
An If statement can help in different cases, different instructions execute:
- Construction: if (condition) { //statement(s) }
- The condition must be as a Boolean "true" or "false".
- The If statement is executed only if the condition is true.
- Is the condition is false, the Code after the If statement further runs.
Glen Johnson
I'm Glen Jonhson. A full time Technology Blogger.
No Comment to " If loop in Java "