Java   View all facts   Glossary   Help
specification > interface > Iterator
Next interfaceRunnable    Upinterface    Previous interfaceSerializable   

Iterator comparison table
Subject have remove method that is a kind of is a synonym of is a subtopic of have example is an instance of has definition
interface specificationabstract data typeInterfaces
public interface Drawable
{
public abstract Image drawImage();
public abstract Image drawImage(int height, int width);
public abstract Image drawBlackAndWhiteImage(int height, int width);
}
 A named collection of method declarations (without implementations), may also include constant declarations (variables marked static and final)
Iteratorallows you to selectively delete elements of the underlying collection  Example Interfaces
//counts the number of empty strings in a collection of strings
emptyCount = 0;
Iterator i = aCollection.iterator();
while(i.hasNext())
{
if(((String)i.next()).length()==0)
emptyCount++;
}
interface 

Next interfaceRunnable    Upinterface    Previous interfaceSerializable