Код: Выделить всё
Hashtable vars = new Hashtable();
vars.put("POSTCODE","TU1 3ZU");
vars.put("EMAIL","job.blogs@lumesse.com");
vars.put("DOB","02 Mar 1983");
Enumeration e = vars.keys();
while(e.hasMoreElements()){
System.out.println(e.nextElement());
String param = (String) e.nextElement();
}
POSTCODE
Исключение в потоке «main» java.util.NoSuchElementException: Hashtable Enumerator
в java.util.Hashtable$Enumerator.nextElement(Unknown Source)
в testscripts.webdrivertest.main(webdrivertest.java:47)
Подробнее здесь: https://stackoverflow.com/questions/716 ... eption-err
Мобильная версия