Java programming: The If statement
An If statement can help in different cases, different instructions execute:
- Structure: if (condition) { //statement(s) }
- The condition must be true as the Boolean data type"," or "false".
- The If statement is only executed if the condition is true.
- The condition is "false", the Code is executed after the If statement more.
- As a further nesting of the If can be extended-statement to the Else statement. In our gallery you will find examples of this.
In our practice, tips you will also find instructions for the use of Java for Android.