Write a Java Program for Binary Search on Unsorted Array

By | January 25, 2017

Write a Java Program for Binary Search on Unsorted Array


Binary Search

Java Program first ask to the user to enter “how many element he/she want to store in a array”, then ask to enter the array element one by one in any order in which they want”.

After storing the element in the array, following program again ask to the user to enter the element which he/she want to search in the array whether the entered element/number is present in the list or not.

The searching technique used here is binary search which is fast technique :


SOURCE CODE ::

 

 

OUTPUT ::

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *