2d array enhanced for loop code example
Example: enhanced for loop for object 2D array
/*
Jaggad 2D Array Contents Java:
4 2 1 3
1 2
7 6 5 4 3 2 1
*/
for(int[] x:arr)
{
for(int y:x)
{
System.out.print(y+" ");
}
System.out.println();
}