frysk.testbed
Class Fibonacci
java.lang.Object
frysk.testbed.Fibonacci
public class Fibonacci
- extends Object
Compute the Fibonacci number of N. The class contains both the
computed value, and the number of resursive calls required to
compute that value.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
callCount
private int callCount
value
private final int value
Fibonacci
public Fibonacci(int n)
fib
private int fib(int n)
getValue
public int getValue()
getCallCount
public int getCallCount()