Code example for Enumeration

Methods: nextElement

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