When displaying large numbers in eclipse, it just outputs nothing.
import java.math.BigInteger;
public class fibb {
public static void main(String[] args) {
BigInteger a = new BigInteger("-1");
BigInteger b = new BigInteger("1");
BigInteger c = null;
long max = 1000000;
long startTime = System.currentTimeMillis();
for (long i=0; i<max; i++) {
c = a.add(b);
a = b;
b = c;
// System.out.println(c + "\n" + i + "\n");
}
long endTime = System.currentTimeMillis();
System.out.println( c + "\nIt took " + (endTime - startTime) / 1000.0 + " seconds");
}
}
This outputs a blank line, then the rest of the text "It took ..." When I ran this in the console, the number was so large that the console truncated the top of it, but it still was printed.
Is there a reason for that? Or is it just an internal bug. If you uncomment that line, eclipse stops printing the number around fibonacci of 2000.