Question: import java.util.Scanner; public class ArrayProcessing { / * TODO : Write a method, productArray, that takes an int [ ] parameter and returns the product

import java.util.Scanner;
public class ArrayProcessing{
/*
TODO : Write a method, productArray, that takes an int[] parameter
and returns the product of all array element as an int. for example, array ,7 should return the value of 1**3**5**7; array {10,9,55,33,60} should return the result of 10**9**55**33**60
*/
public static void main(String[] args){
// TODO use Scanner to get array size from user
System.out.println("please enter the size of the array");
// TODO create an int array with size
// TODO using a loop to get user input as array elements
// TODO replace 0 below with a method invocation to productArray() int product =0;
System.out.println("array product ="+ product);
}
}
PLEASE COMPLETE THE TODO IN JAVA
 import java.util.Scanner; public class ArrayProcessing{ /* TODO : Write a method,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!