Question: to be done in JAVA Name 1. Create a class called TDAtest your name>, 2. Write the following static method called processArray as signature below

to be done in JAVA
Name 1. Create a class called TDAtest your name>, 2. Write the following static method called processArray as signature below to process 2-D array that is passed as parameter, then return the processed array public static void processArray (int[] to Proc, int rowIndex, int toAdd) The processing works like this, it will add an integer value (toAdd) to all the items that is in the row with index of rowIndex For example, if an array named input is 6 A call of processArray (input, 1,5) will give 2 3 2 9 11 10 3. Write the following static method called printArray as signature below to output 2-D array that is passed as parameter public static void printArray (int[] toPrint) For example, the array is 3 2 16 5 Then output of the array should look like 232 465 4. Use this main method to test your work public static void main(String args[]) int[] input= {{ 2, 3, 2, 3), (4,6,5,8). {10, 2, 3,7}}; printArray(input); processArray (input, 2,5); printArray (input)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
