Java Garage

     

There are relational operators used for testing whether a value is greater than or equal to another value. They are shown in Table 7-1.

7-1. The Logical Operators

O PERATION

O PERATOR

E XAMPLE

Equal to

==

(x == 1)

Not equal to

!=

( a!= b)

Less than

<

( i < 10 )

Greater than

>

( i > j )

Less than or equal to

<=

(j <= 10)

Greater than or equal to

>=

( x >= y)

Категории