Mega Code Archive

 
Categories / Java / JSP
 

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>