title: How does the enhanced for statement work for arrays, and how to get an iterator for an array?
body: <p>Given the following code snippet:</p>
  
  <pre><code>int[] arr = {1, 2, 3};
  for (int i : arr)
      System.out.println(i);
  </code></pre>
  
  <p>I have the following questions:</p>
  
  <ol>
  <li>How does the above for-each loop work?</li>
  <li>How do I get an iterator for an array in Java?</li>
  <li>Is the array converted to a list to get the iterator?</li>
  </ol>