This is a simple java program for implementing the two dimensional array program and its square. This session provide you the best explanation with mathematical operation.
Description of progarm:
We are going to display the square of two matrix. Firstly, we have to define a class "SquareMatrix". Then we take an integer type array that contains integer type values. After this, we use two 'for' loop that denotes rows and columns of a matrix. After getting both the matrix with us we need to square both matrix. When we go to square this array then we use "square[i][j] =square[i][j] * square[i][j]". So, the output will be displayed on the screen command prompt by using the println() method.
Here is the code of this program