title: Two types of for loop in Java
body: <p>Is there a difference in terms of efficiency between</p>
  
  <pre><code>int[] numbers = {1,2,3,4,5,6,7,8,9,10};
  for (int item : numbers) {
     System.out.println("Count is: " + item);
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>int[] numbers = {1,2,3,4,5,6,7,8,9,10};
  for (int i = 0; i &lt; 10; i++) {
     System.out.println("Count is: " + numbers[i]);
  }
  </code></pre>