Computes fibonacci(n) = fibonacci(n-1) + fibonacci(n-2); for n> 1
fibonacci(0) = 0;
fibonacci(1) = 1.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile int | |
| pack-priv static int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| public static void | |
| public void | |
| pack-priv static int |
| number | back to summary |
|---|---|
| pack-priv volatile int number | |
| sequentialThreshold | back to summary |
|---|---|
| pack-priv static int sequentialThreshold | |
| Fib | back to summary |
|---|---|
| pack-priv Fib(int n) | |
| getAnswer | back to summary |
|---|---|
| pack-priv int getAnswer() | |
| main | back to summary |
|---|---|
| public static void main(String[] args) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |
| seqFib | back to summary |
|---|---|
| pack-priv static int seqFib(int n) | |