Question: Q4. Create a method calculate() in a class which has the following code: { int[] input = { 3, 5, 6, 7 }; int[] output
Q4. Create a method calculate() in a class which has the following code:
{ int[] input = { 3, 5, 6, 7 };
int[] output = multiplyEveryElement(input);
System.out.print("Result of multiplying every element by 3 is : ");
for(int outputElement : output) {
System.out.print(outputElement + ", "); }
What will be the output if u create an object and call this method?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
