SyntaxFix
Write A Post
Hire A Developer
Questions
You call nextElement() twice in your loop. This call moves the enumeration pointer forward. You should modify your code like the following:
nextElement()
while (e.hasMoreElements()) { String param = e.nextElement(); System.out.println(param); }