reading-notes

View the Project on GitHub Mahmoud-Barghouthi/reading-notes

Comparison Operators:

(155,151, 156, 157) Java and Jquary

Evaluating Conditions

This command help us to evaluate a situation by comparing one value with a datatype to get the expected output. The result will be a boolean which is
* True
* False
Down below, we are going to see the symboles or a special characters that Java can read in order to interact with them:

Symbols | Meaning

Logical Operators

Comparison Operators often return single values of T or F, Which allow the users to compare the results more than one comparision Operator. Check the below image.

Logical

Now lets have a look of other logical Operators:

Logical Symbol Meaning
&& its (AND) Logical where this Operator test more than one Condition.(see the image below table for more example).
(or) tests at lesat one Condition (see the image below table for more example).
! takes a single boolean value and inverts it (see the image below table for more example).

logical2


Comparison Operators:

(170, 173, 176) Java and Jquary

Loops

to check a Condition. if it returns true, a code will block run. Then the Condition will be checked again and if it still returns true. (Check the Two images below)

loops Loops