View Single Post
  #2 (permalink)  
Old 08-04-2007, 08:31 PM
henry_78 henry_78 is offline
Member
 
Join Date: Aug 2007
Posts: 47
henry_78 is on a distinguished road
Iterator
Hi,
First of all, Iterator is a java interface and it has methods to iterate on elements of collections.
Un can create your own iterator implementing that interface:
The methods of the interface are:
hasNext() : To know if there other elements left in the collection.
next() : Returns the next element.
remove() : To remove the current element from the collection(better not use that metthod).

U can read more about the Iterator in the java doc.
Bye.
Reply With Quote