Fibonacci numbers In Java

import java.io.*;
import java.math.BigInteger;

public class BigFib
{
BigInteger last;
BigInteger next;
int n;

public BigFib () {
n = 0;
last = new BigInteger("0");
next = new BigInteger("1");
}


public BigInteger getFib(int c, PrintStream printTo)
{
BigInteger tmp;
for( ; c > 0; c -= 2)
{
last = last.add(next); n++;
if (printTo != null) printTo.println(" " + n + "\t" + last);
next = next.add(last); n++;
if (printTo != null) printTo.println(" " + n + "\t" + next);
}
if (c == 0) return next;
else return last;
}


public static final int defaultLimit = 100;


public static void main(String args[])
{
BigInteger answer;

BigFib fib = new BigFib();

System.out.println("\t\t Fibonacci sequence!");
System.out.println("");

System.out.println();
int limit = 100;
if (args.length > 0)
{
try { limit = Integer.parseInt(args[0]); }
catch (NumberFormatException nfe)
{
System.err.println("Bad number, using default " + limit);
}
if (limit < 1)
{
limit = defaultLimit;
System.err.println("Limit too low, using default " + limit);
}
}

answer = fib.getFib(limit, System.out);
}
}

We Are Founder..