stu nicholls dot com | menu - Professional dropdown #3

click here


Interface implementation file: addserverimpl.java



import java.rmi.*;

import java.rmi.server.*;

public class addserverimpl extends UnicastRemoteObject

implements addserverintf
{

public addserverimpl() throws RemoteException

{

}

public double add(double d1,double d2) throws RemoteExceptionn

{

return d1+d2;

}

public double subtract(double d1,double d2) throws RemoteExceptionn

{

return d1-d2;

}

public double multiply(double d1,double d2) throws RemoteExceptionn

{

return d1*d2;

}

public double devide(double d1,double d2) throws RemoteExceptionn

{

return d1/d2;

}

}

 

Our aim is to provide information to the knowledge seekers. 

Footer1