public class NumberCruncherServer extends java.rmi.server.UnicastRemoteObject implements NumberCruncher
Constructor and Description |
---|
NumberCruncherServer() |
Modifier and Type | Method and Description |
---|---|
static void |
delay(int millis) |
int[] |
factor(int number)
Factor a positive integer
number and return its
distinct factor's as an integer array. |
static void |
main(java.lang.String[] args) |
clone, exportObject, exportObject, exportObject, unexportObject
public NumberCruncherServer() throws java.rmi.RemoteException
java.rmi.RemoteException
public int[] factor(int number) throws java.rmi.RemoteException
NumberCruncher
number
and return its
distinct factor's as an integer array.factor
in interface NumberCruncher
java.rmi.RemoteException
public static void delay(int millis)
public static void main(java.lang.String[] args)
Copyright © 1999-2017 QOS.ch. All rights reserved