Addition or Sum of 2x2 matrix using Arrays in java
We know that arrays are different types, as usual one dimensional array, two dimensional array, three and multi (mxn) dimensional arrays.In two dimensional arrays we need 2x2 array.
A 2x2 matrix is a rectangular often square array of numbers having 2 columns and 2 rows, or expressions which can be evaluated to numbers. The dimensions m x n refer to the number of rows (m) and columns (n) respectively.
We can declare the one dimensional array as:
int[] myArray = {0,1,2,3};
and two dimensional array looks like this: int[][] myArray = { {0,1,2,3}, {3,2,1,0}, {3,5,6,1}, {3,8,3,4} };




