I'm sorry I'm just not following... Like I said this class will explain what you're supposed to do, give a short example (in which I'm finding out the code is not even valid) and say "ok now do...
Type: Posts; User: AWol
I'm sorry I'm just not following... Like I said this class will explain what you're supposed to do, give a short example (in which I'm finding out the code is not even valid) and say "ok now do...
Thank You!
Another error is popping up now, saying that this line:
if(a[mid].compareTo(x) < 0)
is not good. The error says "int cannot be dereferenced".
I am attempting to write basic code for a binary search. Here is the code I have:
public class BinarySearch
{
public static final int NOT_FOUND = -1;
public static int...