Hi, there is really annoying problem that i need to solve.
Java won't let me create uninitialized objects to fill an arraylist.
what i want to do:
ArrayList<Object> list;
for(int i = 0; i < 10; i++){
list.add(new Object());
}
after this i would fill the objects with values when looping through the list again. Not sure if this is possible. What I need to do is generate an abstract number of distinct objects that can be assigned values by index.