Question: 1.20 pts) What does this method do? public static int foo(String [][] a) { int b = 0; for (int I = 0; i
1.20 pts) What does this method do?
public static int foo(String [][] a)
{
int b = 0;
for (int I = 0; i { b++; } return b; } 2.(10 points) Declare a two dimensional integer array with 3 rows and 4 columns 3.A. (10 points) Declare a two dimensional ragged integer array called myArray with 4 rows B. (10 points) Store 10 and 20 in the first row of myArray C. (10 points) Store 25, 60 and 5 in the second row of myArray. D. (20 points) Get the number of roes in myArray and get the size of each row of myArray. 4.(20 point) Write the java code for printing a two dimensional array. You may assume any number of row and columns for this array. Just declare the array and write the code to print the elements row by row. Java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
