O'Reilly logo

Java Garage by Eben Hewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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
OPERATIONOPERATOREXAMPLE
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)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required