Search:

Type: Posts; User: Allicat

Search: Search took 0.13 seconds.

  1. Replies
    8
    Views
    2,768

    Re: Binary Search Help!

    public class BinarySearch
    {
    public static final int = 45.3;
    public static int binarySearch (Integer [] a, int x)
    {
    int low=0;
    int high = a.length; 45.3;
    int mid;
    ...
  2. Replies
    8
    Views
    2,768

    Re: Binary Search Help!

    What does a. length mean?
  3. Replies
    8
    Views
    2,768

    Re: Binary Search Help!

    public class BinarySearch
    {
    public static final NOT_FOUND = -1;
    public static int binarySearch (Integer [] a, int x)
    {
    int low=0;
    int high = a.length - 1;
    int mid;
    ...
  4. Replies
    8
    Views
    2,768

    Re: Binary Search Help!

    Do I need to write an array to start it, to end it, or not at all? ~ Sorry, I kept getting errors with the code I had.
  5. Replies
    8
    Views
    2,768

    Binary Search Help!

    So I need to do this:

    A Java program to find the value 45.3 from this list ={-3,10,5,24,45.3,10.5} using the binary search method.

    And I have absolutely nothing. I need help as soon as...
Results 1 to 5 of 5