RMI - Example AddServer

Compile all the below files as usual
> javac *.java

Then create stub class by running the below command
> rmic AddServerImpl.java

Running :
1. Start rmi registry
>start rmiregistry
2. Run the server
>java AddServer
3. Run AddServer
>java AddClient 15 20

The output will be shown as
The first number is 15
The second number is 20
The sum is 35.0