title: Java for loop from 0 to 0
body: <p>Will any problems arise from using the following for loop when variable is equal to 0?</p>
  
  <pre><code>for(int i = 0; i &lt; variable; i++)
  </code></pre>
  
  <p>This seems to sometimes work, but other times I am getting an error with the code inside the for loop. Should I be specifying to only run the for loop when variable is greater than 0? I had figured the for loop simply wouldn't run through at all if the initialization and termination values were the same.</p>
  
  <p>Thanks in advance.</p>