23.11.2017 Views

java_tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Java<br />

> (greater than)<br />

3<br />

Checks if the value of left operand is greater than the value of right<br />

operand, if yes then condition becomes true.<br />

Example: (A > B) is not true.<br />

< (less than)<br />

4<br />

Checks if the value of left operand is less than the value of right operand,<br />

if yes then condition becomes true.<br />

Example: (A < B) is true.<br />

>= (greater than or equal to)<br />

5<br />

Checks if the value of left operand is greater than or equal to the value of<br />

right operand, if yes then condition becomes true.<br />

Example: (A >= B) is not true.<br />

b) );<br />

System.out.println("a < b = " + (a < b) );<br />

System.out.println("b >= a = " + (b >= a) );<br />

System.out.println("b

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!