private int binarySearch(int first, int last, int value) {
if (last < first)
+ //FIXME: should not return an integer
return -1;
int middle = (first + last) / 2;
if (value == int_array[middle])
}
public void afficher() {
- System.out.println("----");
+ String className = this.getClass().getSimpleName();
+ System.out.println("---- " + className + " ----");
for (int i = 0; i < getCurrentSize(); i++) {
System.out.println("element " + i + " " + int_array[i]);
}