Let's say you have created many objects with a simple numerical naming system
MyObject myObject1 = new MyObject(...);
MyObject myObject2 = new MyObject(...);
MyObject myObject3 = new MyObject(...);
MyObject myObject4 = new MyObject(...);
MyObject myObject5 = new MyObject(...);
.
.
.
MyObject myObjectn = new MyObject(...);
is there a more concise/DRY way to add them to an ArrayList than
arrayList.add(myObject1);
arrayList.add(myObject2);
.
.
.
arrayList.add(myObjectn);
or
ArrayList<MyObject> arrayList = new ArrayList<MyObject>(Arrays.asList(myObject1, myObject2, ..., myObjectn))