title: for loop optimization
body: <pre><code>List&lt;String&gt; flowers = new ArrayList&lt;String&gt;();
  </code></pre>
  
  <p>My for loop currently looks like this...</p>
  
  <pre><code>for (int i = 0; i &lt; flowers.size(); i++) {
  ...
  }
  </code></pre>
  
  <p>OR should I change this to look like the code given below</p>
  
  <pre><code>int size = flowers.size();
  for (int i = 0; i &lt; size; i++) {
  ...
  }
  </code></pre>
  
  <p>Which is more performant (assuming I have a large array of flowers), I am guessing it should be the latter. </p>