Question: This is for Java Lab 8.1.2 - Integer 2D Array with Initializer List Write a program to define a 3x5 two-dimensional integer array using initializer
This is for Java


Lab 8.1.2 - Integer 2D Array with Initializer List Write a program to define a 3x5 two-dimensional integer array using initializer lists to provide beginning values. Call the array nums or list or whatever name you deem appropriate for the number values you will use. Define code to output all original elements, and then change any four of the elements to a different value, making the new values all negative, and then output all the elements again. Output a blank line between the two output sets. Use the code provided to help get you started. public class Lab812 { :) ] public static void main(String [] args) { /ote... this is a 2x5 int array l/a 3x5 array is required int[] [] nums {{3,6,2,9,7},{7,45,9,12,44}}; //this output is incomplete for this array System.out.println(nums [O] [0]); System.out.println(nums [0] [3]); 9 System.out.println (nums [1][1]); 45 System.out.println(nums [1] [3]); 12 System.out.println [1] [4]); 44 -4 nums [1] [4] = -4; //make a statement to create a blank line here System.out.println(nums [1] [4]); } C:\Program... Lab 8.1.2 Starter Code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
