✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is the result of the following?
int[] random = { 6, -4, 12, 0, -10 };
int x = 12;
int y = Arrays.binarySearch(random, x);
System.out.println(y);