I have list object. i want to get all the elements from them. i used a method add(int index) to get all the elements from them. When i carefully looked at the API there is Interface called Iterator which can also be used to get elements out from the list. Which is the best and efficient way.. I am using JDK 1.4.2