File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Enumeration interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Enumeration interface" Watch "Enumeration interface" New topic
Author

Enumeration interface

Vijay pillai
Ranch Hand

Joined: Jan 10, 2001
Posts: 45
thks for the ans this was very useful.
if someone could tell me which class in the API directly implements Enumeration.
thks
VIJAY PILLAI
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
From reading another of your posts, I gather that you are confused about the Enumeration interface issue. I will try and clear it up for you.
By stating that a class implements the Enumeration interface we are telling all class users that we have the following routines implemented:
boolean hasMoreElements();
Object getNextElement();
A few collections (i.e., Vector, Hashtable) have 'default' (accessible only from within java.util package) classes that implement the Enumeration interface.
Lets use the Vector class as an example:

The above code provides the means to make use of the following code:

Manfred.
[This message has been edited by Manfred Leonhardt (edited January 11, 2001).]
 
jQuery in Action, 2nd edition
 
subject: Enumeration interface
 
Similar Threads
how to make two Div display in same line ?
why i can't get back pararmeters ?
UGENT! JAVA DOESN'T WORK!
Event Listener
how to create a button via J2ME