Here you can find the source of arrayProduct(int[] vs)
public static int arrayProduct(int[] vs)
//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; } }