<BAEL-1209>[Harihar] Code for RMI java. http://jira.baeldung.com/brow… (#2729)

* <BAEL-1209>[Harihar] Code for RMI java. http://jira.baeldung.com/browse/BAEL-1209

* <BAEL-1209>[Harihar] Use specific exception declaration
This commit is contained in:
Harihar Das
2017-10-15 08:04:13 +05:30
committed by Zeger Hendrikse
parent a6e8045793
commit 56af2a7318
6 changed files with 66 additions and 0 deletions
@@ -0,0 +1,10 @@
package org.baeldung;
import java.rmi.RemoteException;
public class RandomNumberGeneratorEngine implements RandomNumberGenerator {
@Override
public int get() throws RemoteException {
return (int) (100 * Math.random());
}
}