Asked by Da Fash

Hey!

Thanks for checking my question out!
____

10. If x is a sorted array of int values, which of the following shows a call to a method of the Arrays class that will determine if the value 7 exists in the array? (1 point)

a) int loc = java.util.Arrays.search(x, 7);

b) int loc = java.util.Arrays.binarySearch(x, 7);

c) int loc = java.util.Arrays.find(x, 7);

d) int loc = java.util.Arrays.locate(x, 7);

My Answer: B
Could someone please check my answer?

Thanks!
- Da Fash

Answers

There are no human answers yet.
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions