SyntaxFix
Write A Post
Hire A Developer
Questions
Each time you do e.nextElement() you skip one. So you skip two elements in each iteration of your loop.
e.nextElement()