public class CalculatorImpl extends RemoteObject implements Calculator
| Constructor and Description |
|---|
CalculatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
add(int x,
int y) |
int |
fib(int x) |
void |
fibonacci(int x) |
double |
getPi() |
getChannel, getParams, getRef, invokeMethod, kill, run, startRemoteObjectactiveCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic void fibonacci(int x)
fibonacci in interface Calculatorpublic int fib(int x)
public int add(int x,
int y)
add in interface Calculatorpublic double getPi()
getPi in interface Calculator