Question: Start by 4 Question 3: (5marks Write a method countOverlap which accepts two integer arrays, arrayA and arrayB, and returns the number of elements that

 Start by 4 Question 3: (5marks Write a method countOverlap which
Start by 4

Question 3: (5marks Write a method countOverlap which accepts two integer arrays, arrayA and arrayB, and returns the number of elements that appear in both arrays. You can assume that there are no duplicate entries in each input array: Question 4: (5 marks) Write a java method rotate that takes a two-dimensional array a and returns a two-dimensional array b made by rotating a by 90 counterclockwise. For example, if a holds 1 23 456 b= rotate(a) will hold 3 6 25 14 Question 5: (5marks) Write the complete code of the following Java method: The method countDvsbls0 takes two arguments which are: one 1D array, say A, and one integer value, say x. The method should return the count of the divisible numbers of x in the array

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!