/** * A class to demonstrate recursive binary search **/ public class BinrySearch { /** * Class variable holding the data to be serched **/ private int[] data; public BinrySearch() { this(10); } /** * Initialize the search with n numbers * @param n the number of numbers to be searched */ public BinrySearch(int n) { data = new int[n]; for (int i=0; ihi) return false; int mid = (lo+hi)/2; System.out.println(target + " " + data[mid] + " " + lo + " " + hi + " " + steps); if (data[mid]==target) return true; if (data[mid]