[Solved] I am attempting write a class that multiplies two matrices using arrays. Are there any errors in the code? [closed]


int Frows = FM.length;
int Fcolumns = FM[0].length;
int Srows = FM[0].length;
int Scolumns = FM.length;

should be

int Frows = FM.length;
int Fcolumns = FM[0].length;
int Srows = FM.length;
int Scolumns = FM[0].length;

and …

float finAns[][] = new float[Fcolumns][Scolumns];

should be

float finAns[][] = new float[Frows][Scolumns];

Start with that

solved I am attempting write a class that multiplies two matrices using arrays. Are there any errors in the code? [closed]