@@ -0,0 +1,648 @@
+import java.util.Scanner;%0A%0A/**%0A * This program computes the Fibonacci Sequence using arrays, and the length specified%0A * by the user.%0A **/%0Apublic class Fibonacci_Array %7B%0A    public static void main(String%5B%5D args) %7B%0A        int z;%0A        System.out.println(%22How many Fibonacci numbers do you need?%22);%0A        Scanner m = new Scanner(System.in);%0A        z = m.nextInt();%0A        int a%5B%5D = new int%5Bz%5D;%0A        a%5B0%5D = 0;%0A        a%5B1%5D = 1;%0A        for (int i = 2; i %3C z; i++) %7B%0A            a%5Bi%5D = a%5Bi-1%5D + a%5Bi-2%5D;%0A        %7D%0A        for (int i = 0; i %3C z; i++) %7B%0A            System.out.print(a%5Bi%5D + %22 %22);%0A        %7D%0A        System.out.println();%0A    %7D%0A%7D%0A

Add problem 2 to unit 2