Using the continue Statement : Statements « JSP « Java
- Java
- JSP
- Statements
Using the continue Statement
<HTML>
<HEAD>
<TITLE>Using the continue Statement</TITLE>
</HEAD>
<BODY>
<H1>Using the continue Statement</H1>
<%
for(double i = 6; i >= -6; i--) {
if (i == 0) continue;
out.println("The reciprocal of " + i +
" is " + (1 / i) + ".<BR>");
}
%>
</BODY>
</HTML>
Related examples in the same category