Codice: Seleziona tutto
import java.rmi.*;
public interface MyServerInterface extends remote {
public String concat(String a, String b) throws RemoteException;
}
public class Myserver implements MyServerInterface extends UnicastRemoteObject{
public void MyServer() throws RemoteException {
}
public void String concat(String a, String b) throws RemoteException{
return a + b;
}
}
però non mi viene compilato. inoltre vorrei sapere... va bene o manca qualcosa?
perchè devo creare l'interfaccia, che contiene lo stesso metodo della classe?
non capisco perchè ripetere il tutto
