/** * A class illustrating Binary Search * @author gtowell * Created: Feb 2020 * Modified: Nov 6, 2020 */ public class BinrySearch { private int[] data; 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]