http://www.javaprogrammingforums.com/whats-wrong-my-code/18515-loop-does-not-execute-first-command-after-2nd-time.html

Duplicate post and answered.