Using Logical Operators : Operators « JSP « Java Tutorial






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








23.13.Operators
23.13.1.Using Operators
23.13.2.Incrementing and Decrementing
23.13.3.Multiplication and Division
23.13.4.Addition and Subtraction
23.13.5.Using Relational Operators
23.13.6.Using Logical Operators
23.13.7.Checking Operator Precedence