in java,how to iterate list of objects

i am having the list myEmpls

List myEmpls = new ArrayList();

In this list i have added used defined objects.

LogConf e = getLogs(el);
    //add it to list
 myEmpls.add(e);

Now how to iterate the list of objects and get the values from this objects. How to do this?

5
задан skaffman 15 May 2011 в 08:51
поделиться