 <p>public class twoTimes </p> <p>{</p> <pre><code> public static void main(String[] args) { for ( int i=1; i&lt;11; i++)//; &lt;----- Due to this it is not working { System.out.println("count is" + i); } } </code></pre> <p>}</p>