Is there a way to initialize an array or a collection by using a simple lambda expression?
Something like
// What about this?
Person[] persons = new Person[15];
persons = () -> {return new Person()};
Or
// I know, you need to say how many objects
ArrayList<Person> persons = () -> {return new Person()};