Skip to content

Walid-X/Binary-search-in-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

45fef74 · Oct 12, 2023

History

3 Commits
Oct 12, 2023
Oct 12, 2023

Repository files navigation

Binary Search Java Program

A simple Java program that demonstrates the binary search algorithm. This program allows users to input an array, sort it, and then search for a specific value within the array.

Getting Started

These instructions will help you run the Java program on your local machine.

Prerequisites

Running the Program

  1. Clone the repository to your local machine:

    git clone https://github.com/yourusername/binary-search-java.git
  2. Open the project in your favorite Java IDE.

  3. Run the Main.java file.

  4. Follow the on-screen instructions to input an array, specify a value to search for, and see the result.

Usage

The program prompts you to enter the size of the array and the elements of the array. It then sorts the array and performs a binary search for the specified value. If the value is found, it will display a message indicating that the value was found.

Authors

Acknowledgments

  • This program serves as a basic example of the binary search algorithm.

Enjoy your exploration of binary search in Java!


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages