Using Operators : Operators « JSP « Java Tutorial






<HTML>
  <HEAD>
    <TITLE>Using Operators</TITLE>
  </HEAD>

  <BODY>
    <H1>Using Operators</H1>
    <%
        int operand1 = 23, operand2 = 4, product;

        product = operand1 * operand2;

        out.println(operand1 + " * " + operand2 +
            " = " + product);
     %>
  </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