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

Notes for Slide 04
This slide shows examples of comparing two numbers
for greatness using the less-than-operator: < :which
must be placed between two ints.
Although you could compare two constant int values using the
< operator, at least one of the ints on either side of the
< operator is likely to be the value stored in an int variable.
Similar to the == and != operators, the result will be
a true or false value, and you will soon learn that the
words "true" and "false" are actual Java symbols which
could be used in your program.
So, using the symbol true in your program will
most often be more understandable to the person reading
your program than the comparison of two constant int
values such as (14<18).


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