CIS 35A: Introduction to Java Programming

Home | Green Sheet | Lectures | Assignments | FAQ

Control

Control Statements
Relational Operators

Relational operators

Operator Name Returns a true value if
== Equality Both operands are equal.
!= Inequality The left and right operands are not equal.
> Greater Than The left operand is greater than the right operand.
< Less Than The left operand is less than the right operand.
>= Greater Than Or Equal The left operand is greater than or equal to the right operand.
<= Less Than Or Equal The left operand is less than or equal to the right operand.

Previous | Next