Can someone please explain this for-each loop in java : <p>My Java Code is given below</p>

<pre><code>public class ForEachExample {
public static void main(String[] args) {
int arr[]={1,2,3,4,5};

for(int i:arr){
    System.out.println(i);
}
}
}
</code></pre>

<p>in this code <code>for(int i:arr)</code> in totally new for me. 
Can anyone explain me this line and how it's work.</p>

<pre><code>Output:
</code></pre>

<p>1
2
3
4
5</p>
