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;
...
Type: Posts; User: Allicat
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;
...
What does a. length mean?
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;
...
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.
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...