Java Reference
In-Depth Information
Else
i = p;
}
Else
i = q;
Now, the second if statement in the parenthesis is associated with else. Another type of pro-
cedure is of using if statement is the if-else-if ladder statement.
For example
If (condition)
Statement;
Else if (condition)
Statement;
Else if (condition)
Statement;
.
.
.
.
.
Else
Statement;
Switch statements
It is a multi branched statement.
Syntax
Switch (expression)
{
Case value 1:
Search WWH ::




Custom Search