Contact PSVM   (Q & A)  |  Notes Below   Audio  |  [toc]   [prev] Slide 7 of 13 [next]
SIJLesson13 Slide07
1, 2, 3, 4, 5, 6, [7 (top)], 8, 9, 10, 11, 12, 13, [Lab]

Notes for Slide 07
To help explain
the is-greater-than-or-equal-to-operator: >= :you
again see the comparison using an else-part after
an empty if-part.
The two if-statements could be read out loud as,
"if num is greater than or equal to highest ..."
and
"if num is less than highest, do nothing, otherwise ..."
Here is the same example, using a not-operator instead
of the else-part after an empty if-part:

if (!(num < highest)) {
System.out.print("You have the highest score");
} //endif

It produces the same result as the above example, and
could be read out loud as,
"if num is not less than highest ..."


1, 2, 3, 4, 5, 6, [7 (top)], 8, 9, 10, 11, 12, 13, [Lab]