Question: b . Write a method that determines whether or not all of the values in a unsorted targets array are also in a sorted array.
b Write a method that determines whether or not all of the values in a unsorted targets array are
also in a sorted array. Use the binarySearch method in the Arrays class.
Example: If the sortedArray contained and the targets array contained the
method should return true. If the targets array contained the method should return false.
public static boolean containsAllint sortedArray, int targets
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
