What is the best way to do the following:
List list = new LinkedList(); for(int i=0; i<30;i++) { MyObject o1 = new MyOb
Within the context of your loop, you don't need to worry about coming up with a name for each new instance you create. It's enough to say
List list = new LinkedList(); for(int i=0; i<30;i++) { list.add(new MyObject()); }