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[]copy = Arrays.copyOf(array,array.length);
Arrays.sort(copy);
int index = Arrays.binarySearch(copy,5);
if (index >= 0){
System.out.println(true);
}
else {
System.out.println(false);
}
//напишите тут ваш код
}
}