// this is ok:
//Integer[] array = {new Integer(1),new Integer(2),new Integer(3)};
// this not, compiler does not like this:
Integer[] array = {1,2,3};
// just the test code which works fine:
for (Integer i : array)
System.out.println(i);
- duplicates
-
JDK-4934916 boxing versus array initializers crashes javac
-
- Resolved
-