Question: For 2D array named items of size 10 rows and 3 columns, Which of the following fragments prints out every element of array? for
For 2D array named items of size 10 rows and 3 columns, Which of the following fragments prints out every element of array? for (int row=0; row < items.length; row++) for (int row=0; row < items[row].length; row++) System.out.print( items[row][col] + ""); for (int row=0; row < items.length; row++) for (int col=0; col < items[col].length; col++) System.out.print( items[row][col] + " "); for (int row=0; row < items.length; row++) for (int col=0; col < items.length; col++) System.out.print( items[row][col] + " "); for (int row=0; row < items.length; row++) for (int col=0; col < items[row].length; col++) System.out.print( items[row][col]+");
Step by Step Solution
There are 3 Steps involved in it
The detailed answer for the above question is provided below The image displays four code fragments ... View full answer
Get step-by-step solutions from verified subject matter experts
