Question: 3. Write a Java to do the following problem: We have a group of 4 arrays A, B, C, and D. Obtain for each

3. Write a Java to do the following problem: We have a group of 4 arrays A, B, C, and D. Obtain for each array the maximum element and store in an array RES. In addition, obtain the maximum element of the array RES Apply the Try-Catch to handle errors in the methods and in the main program. Program Name: 7-Ex15-YourName Input: A {10, 4, 10, 45, 18, 23, 57, 18, 4} Input: B {22, 14, 12, 27, 22, 43, 14, 27, 18, 43} Input: C {50, 9, 60, 75, 38, 53, 7, 48, 14} Input: D {12, 34, 42, 77, 32, 63, 34, 17, 148, 13} Output: Input Array A is 10 4 10 45 18 23 57 18 4 Maximum Value in Array A is 57 Input Array B is 22 14 12 27 22 43 14 27 18 43 Maximum value in Array B is 43 Input Array C is 50 9 60 75 38 53 7 48 14 Maximum Value in Array C is 75 Input Array D is 12 34 42 77 32 63 34 17 148 13 Maximum value in Array D is 148 The Array RES is 57 43 75 148 Maximum Value in Array RES is 148
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
