title: Java: Enumeration from Set<String>
body: <p>I have a simple collections question. I have a <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Set.html" rel="nofollow noreferrer"><code>Set&lt;String&gt;</code></a> object. I want an <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Enumeration.html" rel="nofollow noreferrer"><code>Enumeration&lt;String&gt;</code></a> of the <code>String</code>s in that <code>Set</code>. I need an <code>Enumeration&lt;String&gt;</code> since I am overriding a method that specifically returns an <code>Enumeration&lt;String&gt;</code>. What is the cleanest/best way to go about it?</p>