Подскажите пожалуйста.Почему такой код у меня не работал? public class Solution {
public static int[] array = {9, 8, 7, 6, 5, 4, 3, 2, 1};
public static int element = 5;
public static void main(String[] args) {
int[] array2=Arrays.copyOfRange(array, 0, array.length);
Arrays.sort(array2);
int index=Arrays.binarySearch (array