Moved 4.3.c test program to class ComparableTest
because that's what the template doesgeneric-observer
parent
4fabc31ce0
commit
0760b65a8b
@ -0,0 +1,14 @@
|
||||
package _4._3;
|
||||
|
||||
public class ComparableTest {
|
||||
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) Utils.getMinimum(array);
|
||||
System.out.println(minimum.value); // Erwartet: 0
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue