Question: Has to be written in Java You need to create a two dimensional Integer array list of size 6X4 Note: 1) First 3 columns, 5
Has to be written in Java

You need to create a two dimensional Integer array list of size 6X4 Note: 1) First 3 columns, 5 rows you can generate any random numbers. 2) 4th column for first 5 rows will be the sum of corresponding row values 3) 6th row, first 3 columns will be the sum of corresponding column values 4) 6th row and 4th column value is made O For Example Column 1 Column 2 Column 3 Column 4 4 Sum(2 + 1 + 4) = 7 10 Row 12 Row 23 Row 3 Row 45 Row 5 Row 6 Sum( 2 + 3 +4+5+6)=2018 2 13 0 Output: To Generate random numbers you can use (int) (Math.random) * 10), make sure or you can use Random class from Java.util.Random, if you use Random Class use nextlnt(10) method (this will generate number from 0-9 integer value) Output: X Column 1 Column 2 Column 3 Column 4 Row 1 2 Row 2 3 Row 3 4 Row 4 5 Row 5 6 Row 6 20 10 2 8 13 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
