title: How to combine JAVA code and HTML?
body: <p>I'm a java noobie. I have a question.
  In PHP you can do this:</p>
  
  <pre><code>&lt;?php
  for(i = 0; i&lt;n; i++){ ?&gt;
     &lt;h3&gt;Hello world!&lt;/h3&gt;
     &lt;p&gt;This is a test app&lt;/p&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>This way you will print those two html lines N times.
  Is there any way to do the same in java? A way to "combine" both languages in a similar way?</p>