1. Create a new Java project named ExerciseArray2. 2. Create a class named Matrix that has the following methods: • Create that will allow user to specify an nxn two-dimensional array and also allows the user to enter the values in both arrays.. You can also hard code the arrays. • Sum that accepts two two-dimensional arrays (matrices) as arguments and returns a two-dimensional array representing their sum. • Product that accepts two two-dimensional arrays (matrices) as arguments and returns a two-dimensional array representing their product. • Display that accepts a two-dimensional array as an argument and displays its elements. 3. Create a class MatrixTest to invoke the previous methods with the following two matrices:
1. Create a new Java project named ExerciseArray2.
2. Create a class named Matrix that has the following methods:
• Create that will allow user to specify an nxn two-dimensional array and also allows the user to enter the values in both arrays.. You can also hard code the arrays.
• Sum that accepts two two-dimensional arrays (matrices) as arguments and returns a two-dimensional array representing their sum.
• Product that accepts two two-dimensional arrays (matrices) as arguments and returns a two-dimensional array representing their product.
• Display that accepts a two-dimensional array as an argument and displays its elements.
3. Create a class MatrixTest to invoke the previous methods with the following two matrices:


Step by step
Solved in 6 steps with 3 images









