public class MultiMatrix {
int[][] multiplyMatrix;
public static void main(String args[]){
int[][] a={{
int[][] b={{
MultiMatrix mm=new MultiMatrix();
mm
mm
}
public void mMatrix(int[][] a
multiplyMatrix=new int[a
for (int i =
for (int j =
for (int k =
multiplyMatrix[i][j]=multiplyMatrix[i][j]+a[i][k]*b[k][j];
}
}
}
}
public void display(){
for (int i =
for (int j =
System
}
System
}
}
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/25688.html