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?
I know its been some time since this post was made. You can also use the Iterator.
Hope this helps someone.
You could just google this and you would find tons of solutions.. But here is the code:
You should also get used to define the type of the elements in the list: