Java   View all facts   Glossary   Help
specification > interface
Next access unitmethod    Upaccess unit, specification    Previous access unitconstructor   

interface comparison table
Subject have have remove method that is a subtopic of have example be implemented by abstract allow
Iterator1 or more superinterfacesallows you to selectively delete elements of the underlying collectionExample 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++;
}
   
Runnablespecification Threads
public interface Drawable
{
public abstract Image drawImage();
public abstract Image drawImage(int height, int width);
public abstract Image drawBlackAndWhiteImage(int height, int width);
}
 the concept of something that will execute code while it is active 
Serializablespecification Object Serialization
public interface Drawable
{
public abstract Image drawImage();
public abstract Image drawImage(int height, int width);
public abstract Image drawBlackAndWhiteImage(int height, int width);
}
Vector class reading and writing of objects to files

Next access unitmethod    Upaccess unit, specification    Previous access unitconstructor