0

How to print values using enhanced for loop, within 2D array, when I try to print it shows error.

https://code.sololearn.com/c7jnk9OaI3n8/?ref=app

10/11/2019 11:36:29 AM

B.Balaji

1 Answer

New Answer

+3

Try like this, might work for (int[] subArray : intArr) { for(int element : subArray) { System.out.print(element + " "); } System.out.println(); }