Using Logical Operators
<HTML> <HEAD> <TITLE>Using Logical Operators</TITLE> </HEAD> <BODY> <H1>Using Logical Operators</H1> <% int temperature = 70; if (temperature < 90 && temperature > 60) { out.println("Picnic time!"); } %> </BODY> </HTML>
1. | Adding value | ||
2. | Checking Operator Precedence | ||
3. | Using Relational Operators | ||
4. | Addition and Subtraction | ||
5. | Multiplication and Division | ||
6. | Incrementing and Decrementing | ||
7. | Using Operators |