package helloworld;

/**
 * A series of useful array functions.
 * @author Kevin Ji <kevin.ji@outlook.com>
 */
public class ArrayFuncs {
    public static double max(double[] array) {
        double max = array[0];
        
        for (int i = 1; i < array.length; i++) {
            if (array[i] > max) {
                max = array[i];
            }
        }
        
        return max;
    }
    
    public static double min(double[] array) {
        double min = array[0];
        
        for (int i = 1; i < array.length; i++) {
            if (array[i] > min) {
                min = array[i];
            }
        }
        
        return min;
    }
    
    public static void main(String[] args) {
        double[] array = {2.3, -1.4, 5.9, 6.2, 0, -3.5};
        System.out.println("Maximum: " + max(array)); // 6.2
        System.out.println("Minimum: " + min(array)); // -3.5
    }
}

@@ -685,32 +685,742 @@
 ;%0D%0A    %7D%0D%0A    %0D%0A
+    public static double sum(double%5B%5D array) %7B%0D%0A        double sum = 0;%0D%0A        %0D%0A        for (double element : array) %7B%0D%0A            sum += element;%0D%0A        %7D%0D%0A        %0D%0A        return sum;%0D%0A    %7D%0D%0A    %0D%0A    public static double%5B%5D concatenate(double%5B%5D array1, double%5B%5D array2) %7B%0D%0A        double%5B%5D newArray = new double%5Barray1.length + array2.length%5D;%0D%0A        %0D%0A        for (int i = 0; i %3C array1.length; i++) %7B%0D%0A            newArray%5Bi%5D = array1%5Bi%5D;%0D%0A        %7D%0D%0A        %0D%0A        for (int i = 0; i %3C array2.length; i++) %7B%0D%0A            // Shift to account for the elements already in newArray%0D%0A            newArray%5Barray1.length + i%5D = array2%5Bi%5D;%0D%0A        %7D%0D%0A        %0D%0A        return newArray;%0D%0A    %7D%0D%0A    %0D%0A
     public stati

Create sum and concatenate methods