/** * Basic Fibonacci program. * @author Steven R. Brandt **/ public class Fib2 { public static long fib(int n) { // Exit condition if(n < 2) return n; // Iterative int fibm2 = 0; int fibm1 = 1; for(int i=2;i