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?

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes