Public Interface Enumeration<e>
Enumeration<e> interface under the Java.util package
Known sub-interfaces have:namingenumeration<t>
The known implementation classes are: StringTokenizer
An object that implements the interface, generates a series of elements, and builds one at a time. Successive calls to the Nextelement method will return a series of contiguous elements.
hasMoreElements
hasmoreelements ()
-
Tests whether this enumeration contains more elements.
-
-
Return:
-
returned if and only if the enumeration object also contains at least one element that can be supplied
true ; false
Nextelement
nextelement ()
-
If this enumeration object has at least one element that can be supplied, the next element of this enumeration is returned.
-
-
Return:
-
The next element of this enumeration.
-
Thrown:
-
NoSuchElementException-If there are no more elements present.
Java API Interface enumeration<e>