Question: Beginner level Java please on BlueJ Create a class called Lab9 and in it implement all of the methods below. Also, write a main method

 Beginner level Java please on BlueJ Create a class called Lab9

Beginner level Java please on BlueJ

Create a class called Lab9 and in it implement all of the methods below. Also, write a main method with test calls to all of these methods. Don't forget to turn in your file to Canvas before the end of the lab today. Part 1 1. intI0 random(int N, int start, int end) returns an N-by-N matrix of random integers ranging from start to end; 2. int rowSum(intU a, int i) returns the sum of the elements in row i of the 2-D array a; 3. int colSum(int0 a, int j) returns the sum of the elements in column j of the 2-D array a 4.boolean isSquare(intI] a) returns true if the 2-D array a is square (i.e. the number of rows and columns are the same); 5. boolean isLatin(intD] a) returns true if the 2-D array a is a Latin square (i.e. an n-by-n matrix such that each row and each column contains the values from 1 through n with no repeats); 6. main(Stringl) args): the main method should test each method above on five randomly generated matrices and also these ones: intO0 allneg -10,-12,-3), 1-4,-5,-6,-8), {-7,-8 int nonsquare - 1,2,3, t4,5], (6,7,8,9) intDO Latin- 1,2,3, 12,3,1, 13,1,2 intnotlatin 12,1,3), 12,3,1}, 3,1,23

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!