Using the for Statement : for « JSP « Java Tutorial






<HTML>
  <HEAD>
    <TITLE>Using the if Statement</TITLE>
  </HEAD>

  <BODY>
    <H1>Using the if Statement</H1>
    <%
        int loopIndex;

        for (loopIndex = 1; loopIndex <= 10; loopIndex++) {
            out.println("This is iteration number "
                + loopIndex + "<BR>");
        }
    %>
  </BODY>
</HTML>








23.8.for
23.8.1.Using the for Statement
23.8.2.Finding Average Grades
23.8.3.Using Two Loop Indexes
23.8.4.Your for statement to loop through an array