title: iterating through Enumeration of hastable keys throws NoSuchElementException error
body: <p>I am trying to iterate through a list of keys from a hash table  using enumeration however I keep getting a NoSuchElementException at the last key in list?</p>
  
  <pre><code>Hashtable&lt;String, String&gt; vars = new Hashtable&lt;String, String&gt;();
  
  vars.put("POSTCODE","TU1 3ZU");
  vars.put("EMAIL","job.blogs@lumesse.com");
  vars.put("DOB","02 Mar 1983");
  
  Enumeration&lt;String&gt; e = vars.keys();
  
  while(e.hasMoreElements()){
  
  System.out.println(e.nextElement());
  String param = (String) e.nextElement();
  }
  </code></pre>
  
  <p>Console output:</p>
  
  <pre>
  EMAIL
  POSTCODE
  </pre>
  
  <pre>
  Exception in thread "main" java.util.NoSuchElementException: Hashtable Enumerator
      at java.util.Hashtable$Enumerator.nextElement(Unknown Source)
      at testscripts.webdrivertest.main(webdrivertest.java:47)
  
  </pre>