Array initialization
// : c04:ArrayInit.java
// Array initialization.
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
public class ArrayInit {
public static void main(String[] args) {
Integer[] a = { new Integer(1), new Integer(2), new Integer(3), };
Integer[] b = new Integer[] { new Integer(1), new Integer(2),
new Integer(3), };
}
} ///:~
Related examples in the same category