Solución
solution.tsTypeScript
public class Solution {
public int productArray(int[] numbers) {
if (numbers.length == 0){
return 1;
}
int result = 1;
for (int i = 0; i < numbers.length; i++){
result *= numbers[i];
}
return result;
}
}0respuestas