I am trying to create a list of objects with n elements. I am trying to do this in the most java 8 way as possible. Something similar to the question asked for c# here : Creating N objects and adding them to a list
Something like this:
List <Objects> getList(int numOfElements)
{
}