Commit 66c102e3 authored by Jose Ernesto Suarez's avatar Jose Ernesto Suarez Committed by GitHub

maybe some compilation failures

X is not a class
parent 264a7935
......@@ -44,15 +44,15 @@ public class test {
}
//I just choose this number)
int X = 17;
int x = 17;
System.out.print("\nX = " + X);
//call my binary search
int last = ar.length-1;
int first = 0;
int index = binarySearch(ar,first,last,X);
int index = binarySearch(ar,first,last,x);
if (index != -1) {
System.out.println("\n" + X + " more than first_index_number: " + index);
System.out.println("\n" + x + " more than first_index_number: " + index);
} else {
System.out.println("\nsomething wrong");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment