X-Git-Url: https://git.piment-noir.org/?p=TP_POO.git;a=blobdiff_plain;f=TP2%2FEntiers.java;h=80fcc9016434b0b5ec16c3f946c1999e37097fa3;hp=b4cffb15f6f90406be47212e9f9dede7a02f1e66;hb=c7c510eb1829b97b642bd584a8737103b07efeb7;hpb=2a977a24c2b00dce8e72f884ae801e6aaa06ab45 diff --git a/TP2/Entiers.java b/TP2/Entiers.java index b4cffb1..80fcc90 100644 --- a/TP2/Entiers.java +++ b/TP2/Entiers.java @@ -60,7 +60,7 @@ class Entiers extends Structure { private int binarySearch(int first, int last, int value) { if (last < first) - //FIXME: should not return an integer + //FIXME: should not return an integer return -1; int middle = (first + last) / 2; if (value == int_array[middle]) @@ -98,7 +98,8 @@ class Entiers extends Structure { } public void afficher() { - System.out.println("---- entiers ----"); + String className = this.getClass().getSimpleName(); + System.out.println("---- " + className + " ----"); for (int i = 0; i < getCurrentSize(); i++) { System.out.println("element " + i + " : " + int_array[i]); }