Mohamed Sanaulla wrote:You dont have i,j initialized.
You would want to take user input regarding the size of the arrays and then store them into some variables.
Also your matrixC isn't initialized and the method matrixAdd expects another argument and you are passing only two matrices whereas it requires 3.
May be you can try using Lists so that you dont have to worry about the size, but anyways you can manage with arrays also.
And I see that in your matrixAdd you are multiplying the elements?