[CT414]: Add RMI sample code
This commit is contained in:
@ -0,0 +1,8 @@
|
||||
// Remote Object has a single method that is passed
|
||||
// the name of a country and returns the capital city.
|
||||
import java.rmi.*;
|
||||
|
||||
public interface CityServer extends Remote
|
||||
{
|
||||
String getCapital(String Country) throws RemoteException;
|
||||
}
|
Reference in New Issue
Block a user