Question: in java please Question 2 (50 points) Given 2 arrays that are the same length containing ints, compare the ist int in one array to
Question 2 (50 points) Given 2 arrays that are the same length containing ints, compare the ist int in one array to the 1st int in the other array, the 2nd to the 2nd and so on. Count the number of times that the 2 ints are both even. even Match([2,3,5), [4, 8, 101) - 1 evenMatch([1, 12, 3, 8, 10, 12, 1,4,3,41) - 2 evenMatch([1, 2, 3, 4, 5, 6), [2,3,4,5,6,71) -- The method header is provided below. Be sure to indude the method header in your answer. If you don't, 5 points will be deducted. public static int evenMatch (int[] a, int[] b) Please include braces to show blocks of code in all cases. Do this even when they are not necessary, i.e. only one line in the body of the loop. This is required because Schoology gets rid of all indentation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
