Added 3.1 c)

generic-observer
Lisa 7 years ago
parent cb103b8a62
commit 4fabc31ce0

@ -17,4 +17,16 @@ public class Utils {
}
return min;
}
public static void main(String[] args) {
ComparableInteger[] array = new ComparableInteger[5];
for (int i=0; i<array.length; i++) {
array[i] = new ComparableInteger(i);
}
ComparableInteger minimum = (ComparableInteger) getMinimum(array);
System.out.println(minimum.value); // Erwartet: 0
}
}

Loading…
Cancel
Save