public class BinarySearch { public static void main (String[] args) { int[] ar = new int[1000]; int i; for (i=0;i