<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Interface java.util.Enumeration
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.util.html">This Package</a>  <a href="Package-java.util.html">Previous</a>  <a href="java.util.EventListener.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Interface java.util.Enumeration
</h1>
<dl>
  <dt> public interface <b>Enumeration</b>
</dl>
An object that implements the Enumeration interface generates a 
 series of elements, one at a time. Successive calls to the 
 <code>nextElement</code> method return successive elements of the 
 series. 
 <p>
 For example, to print all elements of a vector <i>v</i>:
 <blockquote><pre>
     for (Enumeration e = v.elements() ; e.hasMoreElements() ;) {
         System.out.println(e.nextElement());<br>
     }
 </pre></blockquote>
 <p>
 Methods are provided to enumerate through the elements of a 
 vector, the keys of a hashtable, and the values in a hashtable. 
 Enumerations are also used to specify the input streams to a 
 <code>SequenceInputStream</code>.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.io.SequenceInputStream.html#_top_">SequenceInputStream</a>, <a href="#nextElement()">nextElement</a>, <a href="java.util.Hashtable.html#_top_">Hashtable</a>, <a href="java.util.Hashtable.html#elements()">elements</a>, <a href="java.util.Hashtable.html#keys()">keys</a>, <a href="java.util.Vector.html#_top_">Vector</a>, <a href="java.util.Vector.html#elements()">elements</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#hasMoreElements()"><b>hasMoreElements</b></a>()
  <dd>  Tests if this enumeration contains more elements.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#nextElement()"><b>nextElement</b></a>()
  <dd>  Returns the next element of this enumeration.
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="hasMoreElements()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="hasMoreElements"><b>hasMoreElements</b></a>
<pre>
 public abstract boolean hasMoreElements()
</pre>
<dl>
  <dd> Tests if this enumeration contains more elements.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if this enumeration contains more elements;
          <code>false</code> otherwise.
  </dl></dd>
</dl>
<a name="nextElement()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="nextElement"><b>nextElement</b></a>
<pre>
 public abstract <a href="java.lang.Object.html#_top_">Object</a> nextElement()
</pre>
<dl>
  <dd> Returns the next element of this enumeration.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the next element of this enumeration.
    <dt> <b>Throws:</b> <a href="java.util.NoSuchElementException.html#_top_">NoSuchElementException</a>
    <dd> if no more elements exist.
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.util.html">This Package</a>  <a href="Package-java.util.html">Previous</a>  <a href="java.util.EventListener.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
