How I can print 2d or 3d array without nested loops (I wish use one loop)? Is it possible?
Asked
Active
Viewed 241 times
0
-
1possible duplicate? http://stackoverflow.com/questions/29202242/how-to-run-through-a-2d-array-with-a-single-loop – Speerian Mar 02 '17 at 21:36
-
You can do it with no loops at all `System.out.println(Arrays.deepToString(arr));` – Elliott Frisch Mar 02 '17 at 21:40