@@ -0,0 +1,1091 @@
+import java.util.Scanner;%0A%0A/**%0A * This program computes the maximum in an integer array inputted by the user%0A **/%0Apublic class MaxArray %7B%0A    public static void main(String%5B%5D args) %7B%0A        System.out.println(%22Find Maximum - Enter numbers %3E= 0%22);%0A        Scanner m = new Scanner(System.in);%0A        // Java arrays need to have their size known when they are created,%0A        // either by declaring the array manually or giving it a size.%0A        System.out.println(%22Input the size of the array%22);%0A        int size = m.nextInt();%0A        int a%5B%5D = new int%5Bsize%5D;%0A        int max = -100;%0A        for (int i = 0; i %3C a.length; i++) %7B%0A            // The %22i + 1%22 in parens will ensure that the correct number is%0A            // printed to the console. Java works like the standard order of%0A            // operations, so things in parens will be evaluated first.%0A            System.out.println(%22Input number #%22 + (i+1));%0A            a%5Bi%5D = m.nextInt();%0A            if (a%5Bi%5D %3E max) %7B%0A                max = a%5Bi%5D;%0A            %7D%0A        %7D%0A        System.out.println(%22The maximum is: %22 + max);%0A    %7D%0A%7D%0A

Add problem 1 to unit 2