import java.util.Scanner; class Binary { int A[]; int n,l,u; public Binary(int nn) { n=nn; A=new int[n]; l=0; u=n-1; } public void readdata() { Scanner in=new Scanner(System.in); System.out.println("Enter the elments of the array in ascending order: "); for(int i=0;iu) return -1; else { int mid=(l+u)/2; if(A[mid]==v) return mid+1; else if(v