frysk.testbed
Class Fibonacci

java.lang.Object
  extended by 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.


Field Summary
private  int callCount
           
private  int value
           
 
Constructor Summary
Fibonacci(int n)
           
 
Method Summary
private  int fib(int n)
           
 int getCallCount()
           
 int getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

callCount

private int callCount

value

private final int value
Constructor Detail

Fibonacci

public Fibonacci(int n)
Method Detail

fib

private int fib(int n)

getValue

public int getValue()

getCallCount

public int getCallCount()