This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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