Added comment about forcing bad practices

generic-observer 4
Selebrator 7 years ago
parent b8da8cd419
commit 02e4f164a2

@ -1,10 +1,17 @@
package _4._3;
/*
* Wenn da nicht die Vorgabe mit der Ausgabe
* auf die Konsole wäre könnte man hierraus
* einen schönen UnitTest machen. Wir können
* uns aber natürlich auch schlechtes Verhalten
* angewöhnen...
*/
public class ComparableTest {
public static void main(String[] args) {
ComparableInteger[] array = new ComparableInteger[5];
for (int i=0; i<array.length; i++) {
for(int i = 0; i < array.length; i++) {
array[i] = new ComparableInteger(i);
}

Loading…
Cancel
Save