This exercise will also test your knowledge on javaInterface.
In this exercise, you need to write a “search” method that willtake an array of Comparable objects and a Comparable key asparameter and it returns true if the key is present in the array,otherwise it should return false. Test your implementation with twodifferent type of Comparable objects.
Expert Answer
An answer will be send to you shortly. . . . .