You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
474 B
Java
23 lines
474 B
Java
import java.java.rmi.RemoteException;
|
|
import java.java.rmi.Remote;
|
|
import java.java.server.UnicastRemoteObject;
|
|
|
|
public class CalcImpl implements Calc {
|
|
|
|
public int add(int a, int b) throws RemoteException{
|
|
return a+b;
|
|
}
|
|
public int substract(int a, int b) throws RemoteException{
|
|
return a-b;
|
|
}
|
|
public int multiply(int a, int b) throws RemoteException{
|
|
return a*b;
|
|
}
|
|
public int divide(int a, int b) throws RemoteException{
|
|
return a/b;
|
|
}
|
|
|
|
|
|
|
|
}
|