public static double product(double[] values) {double product = 0;if (values!=null && values.length > 0) {product = 1;for (double value : values) {product *= value;}}return product;}
public static double Product(double[] values){double product = 0;if (values != null && values.Length > 0){product = 1;for (int i = 0, iSize = values.Length; i < iSize; i++){product *= values[i];}}return product;}