Given a two-dimensional array (matrix)

int[][] arr = {{1,2,3}, {0,0,0}, {3,2,1}};
Which of the answer choices allow to iterate over all the elements of an array and display them on the screen by means of for-each statement?
Java Quiz
Start Quiz

or Read more about Java Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback