forked from pr2-lecture/uebungen
19 lines
467 B
Java
19 lines
467 B
Java
package pr2.object.wrapper_boxsearch;
|
|
|
|
public class BoxSearcher {
|
|
|
|
public static void main(String[] args) {
|
|
Integer[] array = new Integer[200];
|
|
|
|
for (int i = 0; i < array.length; i++) {
|
|
array[i] = i;
|
|
}
|
|
|
|
for (Integer element : array) {
|
|
boolean identisch = (element == Integer.valueOf(
|
|
element.intValue()));
|
|
System.out.printf("%d: %s%n", element, identisch);
|
|
}
|
|
}
|
|
}
|