Using Compound Statements : Statements « JSP « Java
- Java
- JSP
- Statements
Using Compound Statements
<HTML>
<HEAD>
<TITLE>Using Compound Statements</TITLE>
</HEAD>
<BODY>
<H1>Using Compound Statements</H1>
<%
int value = 10;
if(value > 0) {
out.println("The number was positive.");
out.println("Absolute value of " + value + " = " + value);
}
%>
</BODY>
</HTML>
Related examples in the same category