Object Oriented Software Engineering   View all facts   Glossary   Help
subject > representation > abstraction > data abstraction > interface > Java interface > Iterator
Next Java interfaceRunnable    UpJava interface

Iterator comparison table
Subject have remove method that is a kind of is a subtopic of have example is an instance of has definition
Java interface interface3.3 - Frameworks: Reusable Subsystems
public interface Drawable
{
public abstract Image drawImage();
public abstract Image drawImage(int height, int width);
public abstract Image drawBlackAndWhiteImage(int height, int width);
}
 In Java, a software module containing a description of a set of operations that certain classes must implement
Iteratorallows you to selectively delete elements of the underlying collection The Basics of Java
//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++;
}
Java interface 

Next Java interfaceRunnable    UpJava interface