Question: 1.The code box below includes a live 2 dimensional array variable called gridNums. This array holds integers. You cannot see its declaration or initialization. What

1.The code box below includes a live 2 dimensional array variable called gridNums. This array holds integers. You cannot see its declaration or initialization. What value is in the zeroth (initial) position of the second row? Print this array entry to the console. (Note: remember that the second row is actually row 1). Enter your code in the box below.

2.The code box below includes a live 3x3 2-dimensional array variable called fredsNums. This array holds integers. You cannot see its declaration or initialization. What value is in the southwest corner of the array? Write a statement (or statements) that prints this value to the console.

3.The code box below contains a live 2D array of integers called someInts. This array has a rectangular shape. Write one or several lines of code that determines and then prints to the console the number of columns in the array.

4.The code box below contains a live 2D rectangular array of characters (char) called someChars. Write a looping statement that allows you to calculate, and then print to the console, the number of entries in the array that are (lower case) 'x'. For example, if the array looks like this:

x o o x y y y x p q 

then your code should print 3 to the console. The answer you enter should execute exactly one System.out.println statement.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!