<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:
committed by
Zeger Hendrikse
parent
a6e8045793
commit
56af2a7318
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user