Subato

Fibonacci-Generator

class Fib{
  private long n0 = 0;
  private long n1 = 1;

  long nextFib(){
    long result = n0;
    n0 = n1;
    n1 = n0 + result;
    return result;
  }
}