|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.manual.sample.FibonacciCounter
public class FibonacciCounter
FibonacciCounter is an implementation of a simple Fibonacci counter. Note that this code is only instructional.
Constructor Summary | |
---|---|
FibonacciCounter()
Default constructor. |
Method Summary | |
---|---|
int |
count()
Counts the Fibonacci number specified by the preset counter. |
int |
getCounter()
Gets the value of the counter. |
void |
setCounter(int counter)
Sets the value of the counter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FibonacciCounter()
Method Detail |
---|
public int getCounter()
public void setCounter(int counter)
counter
- the counter.public int count()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |