Question: Task 3: Write program code to create, traverse, and manipulate elements in 2D array objects. Create a new Java file, name it task3.java, then implement

 Task 3: Write program code to create, traverse, and manipulate elements

Task 3: Write program code to create, traverse, and manipulate elements in 2D array objects. Create a new Java file, name it task3.java, then implement the following in the main method: 8x8 1. Create the following two-dimensional array initialization statements based on the descriptions below: a. Create an 8 x 8 array of Strings called chessboard. b. Create a double array called rates with 3 rows and 4 columns. C. Create an integer array called ages that has the values 5, 6, 8 stored in the first row, 7, 9, 15 stored in the second row, and 21, 18, 12 stored in the third row. 2. Calculate the total of the values in the second column in the array ages and print the sum. 3. Given the two dimensional array of 3 rows and 5 columns of integer values called nums, create a String of all the even numbers and print it out within the main() method. int[nums = {{1,2,3, 10, 11}, {4,5,6,7,8). (12, 13, 14, 15, 16)}

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!