Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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,23Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started