| Constructor and Description |
|---|
Fibonacci() |
| Modifier and Type | Method and Description |
|---|---|
int |
getFibTerm(int n)
Calculates the desired term in the Fibonacci sequence.
|
public Fibonacci()
public int getFibTerm(int n)
n - the index of the desired term; the first index of the sequence is 0IllegalArgumentException - if n is not a nonnegative number