Enumeration
Methods
public boolean hasMoreElements()
public Object nextElement()
Usage
//Example
Enumeration e = v.elements(); //v is a vector
while(hasMoreElements()){
Integer I = (Integer) e.nextElements();
}
Limitations
- Applicable only for legacy classes
- Only read operation - can't remove objects
Backlinks