Java Array Value Dot Product arrayProduct(int[] vs)

Here you can find the source of arrayProduct(int[] vs)

Description

array Product

License

Open Source License

Declaration

public static int arrayProduct(int[] vs) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int arrayProduct(int[] vs) {
        int result = 1;
        for (int i = 0; i < vs.length; i++) {
            result *= vs[i];//from w ww.j  a v  a  2 s  . co m
        }
        return result;
    }
}

Related

  1. arrayDot(final Double[] first, final Double[] second)
  2. arrayDot2Zero(String[] values)
  3. arrayMultiplication(double[] a, double[] b)
  4. arrayMultiply(double[] a, double[] b)