title: Loop Efficiency Comparison
body: <p>Which of these is more efficient? :</p>
  
  <pre><code>ArrayList&lt;Integer&gt; list = new ArrayList&lt;Integer&gt;();
  for(int a : list){
     log.i(tag, a + "");
  }
  
  SparseIntArray list2 = new SparseIntArray();
  int count = list2.size();
  for(int j = 0; j &lt; count; j++) {
     log.i(tag, list2.get(j) + "");
  }
  </code></pre>
  
  <p>Or, is there a faster way to read the contents of the list?</p>