Relational Operators

     

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)




Java Garage
Java Garage
ISBN: 0321246233
EAN: 2147483647
Year: 2006
Pages: 228
Authors: Eben Hewitt

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net