java : mapping the Values from Enumeration to Object
<p><strong>I have a Enumeration as shown in below program</strong> </p>

<pre><code>public class Test {
    public static void main(String args[]) {
        Vector v = new Vector();
        v.add("Three");
        v.add("Four");
        v.add("One");
        v.add("Two");
        Enumeration e = v.elements();

        load(e) ; // **Passing the Enumeration .** 

    }

}
</code></pre>

<p><strong>There is also a Student Object</strong> </p>

<pre><code>public Student 
{
String one ;
String two ;
String three ;
String four ;
}
</code></pre>

<p><strong>i need to pass this Enumeration to another  method as shown below</strong> </p>

<pre><code>private Data load(Enumeration rs)
 {
Student  stud = new Student();
while(rs.hasMoreElements())
{
// Is it possible to set the Values for the Student Object with appropiate values  I mean as shown below 
stud.one = One Value of Vector here 
stud.two = Two Value of Vector here 
stud.three = Three Value of Vector here 
stud.four = Four Value of Vector here 

}
}
</code></pre>

<p>Please share your ideas on this .
Thanks </p>
