Object Oriented Software Engineering   View all facts   Glossary   Help
subject > representation > abstraction > data abstraction > interface > Java interface
Upinterface

Java interface comparison table
Subject have remove method that have example
Iteratorallows you to selectively delete elements of the underlying collection
//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++;
}
Runnable 
public interface Drawable
{
public abstract Image drawImage();
public abstract Image drawImage(int height, int width);
public abstract Image drawBlackAndWhiteImage(int height, int width);
}

Upinterface