About 76,500 results
Open links in new tab
  1. Searching Algorithms in Java - GeeksforGeeks

    Nov 10, 2022 · Searching Algorithms are designed to check for an element or retrieve an element from any data structure where it is stored. Based on the type of search operation, these …

  2. Java Program for Linear Search - GeeksforGeeks

    Apr 9, 2025 · Linear Search is the simplest searching algorithm that checks each element sequentially until a match is found. It is good for unsorted arrays and small datasets. Given an …

  3. How to Implement a Basic Search Algorithm in Java

    In this tutorial, we will take a step-by-step approach to implementing basic search algorithms in Java. We will cover the implementation of linear search and binary search. These are …

  4. Binary Search in Java - GeeksforGeeks

    Apr 11, 2025 · Binary search is a highly efficient searching algorithm used when the input is sorted. It works by repeatedly dividing the search range in half, reducing the number of …

  5. java - How to create a search method for an array - Stack Overflow

    public Student search(String name) System.out.print("Enter the name you wish to search: "); for (int i = 0; i < this.students.length; i++) Student s = this.students[i]; if …

  6. Searching Algorithms in Java with Examples - Javacodepoint

    By understanding these two algorithms, you’ll be well-equipped to handle searching problems in Java! Use Linear Search when: The dataset is small. The dataset is unsorted or unordered. …

  7. Mastering Search Algorithms in Java: A Complete Guide with

    Jan 12, 2025 · In this article, we’ll explore some of the most popular search algorithms in Java, discuss their use cases, and provide clear, step-by-step code examples. By the end, you’ll …

  8. Java Searching Programs for Interview 2025 - Javacodepoint

    Mar 22, 2025 · Basic Searching Algorithms in Java. Linear Search in Java – The simplest searching algorithm that checks each element one by one until the target is found. Best for …

  9. Searching Algorithms in Java - Java Guides

    In this article, we will discuss three searching algorithms and it's implementation using the Java Programming language. 1. Linear Search Algorithm. In computer science, linear search or …

  10. Binary Search in Java - Code of Code

    In this article, we will discuss what binary search is, how it works, its time and space complexities, and how to implement it in Java. We will also provide five coding exercises with solutions so …

Refresh