| > |
true if left is greater than
the right ,false otherwise |
| > = |
true if left is greater than or equal to
the right, false otherwise |
| == |
true if left is equal to the right , false
otherwise |
| != |
true if left is not equal to the right
false otherwise |
| < = |
true if left is less than or equal to the
right ,false otherwise |
| < |
true if left is less than the right, false
otherwise |
if
statement
if(expression)
statement;
|
Example
boolean isGradeA?;
if(Score>=90)
isGradeA=true;
|
if
else statement
if(expression)
statement;
else
statement;
|
Example
boolean isGradeA?;
if(Score>=90)
isGradeA=true;
else
isGradeA=true;
|