Code example for Enumeration

Methods: hasMoreElements

0
	public IteratorWrapper(Enumeration enumeration) { 
		myEnumeration = enumeration; 
	} 
 
	public boolean hasNext() { 
		return myEnumeration.hasMoreElements(); 
	} 
 
	public Object next() { 
		return myEnumeration.nextElement(); 
	} 
 
	public void remove() { 
		// do nothing or throw exception 
		//throw new UnsupportedOperationException(); 
	} 
}