Performance: Iterating through a List in Java
<p>Is it slower to iterate through a list in Java like this: </p>

<pre><code>for (int i=0;i&lt;list.size();i++) {
    .. list.get(i)
}
</code></pre>

<p>as opposed to:</p>

<pre><code>for (Object o: list) {
    ... o
}
</code></pre>
