See http://www.javaprogrammingforums.com/whats-wrong-my-code/11051-error-code.html
Type: Posts; User: copeg
See http://www.javaprogrammingforums.com/whats-wrong-my-code/11051-error-code.html
The description of those errors says it all - one of your variables may not have been initialized. Quick fix is to initialize this variable to a particular value (for example 0)
I have moved your post to a more appropriate category.
Please explain your problem more. A for loop is a for loop, so it should end unless something from within prevents this. For example, you...