ccy97
asked on
i have a problem with my code.pls help me
i faced some problem in my matrices program.have anyone help me up.i really do appreciate him.thanks
public class matriceImpl
extends
java.rmi.server.UnicastRem oteObject
implements matrice {
public matriceImpl()
throws java.rmi.RemoteException {
super();
}
static int [][] mult(int [][] A,int [][] B) throws java.rmi.RemoteException
{
int d1 = A.length;
int d2 = A[0].length;
int [][] C= new int [d1][d2];
for (int i=0;i<d1;i++ );
for (int j=0;j<d2;j++ );
for (int k=0;k<A.length;k++ );
C[i][j]=A[i][k]*B[k][j];
return C;
}
public static int [][] add(int [][] A,int [][] B) throws java.rmi.RemoteException
{
int d1 = A.length;
int d2 = A[0].length;
int [][] C= new int [d1][d2];
for (int i=0;i<d1;i++ );
for (int j=0;j<d2;j++ );
C[i][j]=A[i][j]+B[i][j];
return C;
}
public static int [][] prod(int [][] A,int [][] B) throws java.rmi.RemoteException
{
int d1 = A.length;
int d2 = A[0].length;
int [][] C= new int [d1][d2];
for (int i=0;i<d1;i++ );
for (int j=0;j<d2;j++ );
C[i][j]=A[i][j]*B[i][j];
return C;
}
}
public class matriceImpl
extends
java.rmi.server.UnicastRem
implements matrice {
public matriceImpl()
throws java.rmi.RemoteException {
super();
}
static int [][] mult(int [][] A,int [][] B) throws java.rmi.RemoteException
{
int d1 = A.length;
int d2 = A[0].length;
int [][] C= new int [d1][d2];
for (int i=0;i<d1;i++ );
for (int j=0;j<d2;j++ );
for (int k=0;k<A.length;k++ );
C[i][j]=A[i][k]*B[k][j];
return C;
}
public static int [][] add(int [][] A,int [][] B) throws java.rmi.RemoteException
{
int d1 = A.length;
int d2 = A[0].length;
int [][] C= new int [d1][d2];
for (int i=0;i<d1;i++ );
for (int j=0;j<d2;j++ );
C[i][j]=A[i][j]+B[i][j];
return C;
}
public static int [][] prod(int [][] A,int [][] B) throws java.rmi.RemoteException
{
int d1 = A.length;
int d2 = A[0].length;
int [][] C= new int [d1][d2];
for (int i=0;i<d1;i++ );
for (int j=0;j<d2;j++ );
C[i][j]=A[i][j]*B[i][j];
return C;
}
}
You forgot to tell about the problem ...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ccy97:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
- Split points between seguret and vemul
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Venabili
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
- Split points between seguret and vemul
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Venabili
EE Cleanup Volunteer