title: How to use two conditions (greater than and less than) for termination of a for loop in Java?
body: <p>I was wondering, do you have a neat way of doing this ?</p>
  
  <pre><code>for (int i = 0; 4 &gt; i &lt; banners.size() ; i++) {
      doSomeThing
  }
  </code></pre>
  
  <p>bannrs.size maybe between 0 to 10 but i want just 4 time or less do work</p>