class Person { String first; String last; Person(final String first, final String last) { this.first = first; this.last = last; } } Person[] people = new Person[] { new Person("John", "Smith"), new Person("Steve", "Jobs"), new Person("Bill", "Gates"), };
Programming Tips - Java: best way to initialize an array of a class
Date: 2012sep22
Language: Java
Keywords: init
Q. Java: best way to initialize an array of a class
A.