что тут не так? может условие не понял?
package com.javarush.task.pro.task05.task0519;
import java.util.Arrays;
/*
Есть ли кто?
*/
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[] copyA = Arrays.copyOf(array, array.length);
int index = Arrays.binarySearch(copyA, element);
System.out.println(index>0);
}
}