Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
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])
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])
--- /dev/null
+
+public interface Affichable {
+
+ public void afficher();
+
+}
CLASSES = \
Point.java \
+ Affichable.java \
+ Structure.java \
Forme.java \
Image.java \
Segment.java \
public void display() {
System.out.println("----");
- for (int i = 0; i < transformations.length; i++) {
+ for (int i = 0; i < currentTransformation; i++) {
System.out.println(transformations[i].toString());
}
}
--- /dev/null
+
+public abstract class Structure {
+
+ public abstract boolean inserer(int value);
+ public abstract boolean supprimer(int value);
+
+}