не выполняется требование с выводом true на экран
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[] x = Arrays.copyOf(array,array.length);
Arrays.sort(x);
int xx = Arrays.binarySearch(x, element);
boolean xxx = (xx > 0);
System.out.println(xxx);
}
}