What is the best way to do the following:
List list = new LinkedList();
for(int i=0; i<30;i++)
{
MyObject o1 = new MyOb
Your objects don't have names. The variable o1 has a name, but it's not linked to the object except that the variable refers to the object. The object in the list has no knowledge of ever having been referenced by the variable o1.
For what you're doing, you don't need a variable at all, as Stephen said in his answer you can just add the objects directly:
for (int i=0; i<30;i++)
{
list.add(new MyObject());
}